Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
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 
8 
9 use \Magento\Framework\Session\Test\Unit\SessionManagerTest;
10 
18 function ini_set($varName, $newValue)
19 {
20  global $mockPHPFunctions;
21  if ($mockPHPFunctions) {
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 }
ini_set($varName, $newValue)
$mockPHPFunctions