Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Session
Test
Unit
_files
mock_ini_set.php
Go to the documentation of this file.
1
<?php
2
/***
3
* Copyright © Magento, Inc. All rights reserved.
4
* See COPYING.txt for license details.
5
*/
6
7
namespace
Magento\Framework\Session
;
8
9
use \Magento\Framework\Session\Test\Unit\SessionManagerTest;
10
18
function
ini_set
($varName, $newValue)
19
{
20
global
$mockPHPFunctions
;
21
if
(
$mockPHPFunctions
) {
22
SessionManagerTest::$isIniSetInvoked
=
true
;
23
SessionManagerTest::assertSame(
SessionManagerTest::SESSION_USE_ONLY_COOKIES
, $varName);
24
SessionManagerTest::assertSame(
SessionManagerTest::SESSION_USE_ONLY_COOKIES_ENABLE
, $newValue);
25
return
true
;
26
}
27
return
call_user_func_array(
'\ini_set'
, func_get_args());
28
}
Magento\Framework\Session\ini_set
ini_set($varName, $newValue)
Definition:
mock_ini_set.php:18
Magento\Framework\Session\Test\Unit\SessionManagerTest\SESSION_USE_ONLY_COOKIES
const SESSION_USE_ONLY_COOKIES
Definition:
SessionManagerTest.php:20
Magento\Framework\Session
$mockPHPFunctions
$mockPHPFunctions
Definition:
SessionManagerTest.php:8
Magento\Framework\Session\Test\Unit\SessionManagerTest\$isIniSetInvoked
static $isIniSetInvoked
Definition:
SessionManagerTest.php:51
Magento\Framework\Session\Test\Unit\SessionManagerTest\SESSION_USE_ONLY_COOKIES_ENABLE
const SESSION_USE_ONLY_COOKIES_ENABLE
Definition:
SessionManagerTest.php:21