File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
lib/internal/Magento/Framework/Session/Test/Unit Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
// @codingStandardsIgnoreStart
7
- namespace {
8
- $ mockPHPFunctions = true ;
9
- }
10
-
11
7
namespace Magento \Framework \Session \Test \Unit {
12
8
// @codingStandardsIgnoreEnd
13
9
@@ -53,6 +49,7 @@ class SessionManagerTest extends \PHPUnit_Framework_TestCase
53
49
protected function setUp ()
54
50
{
55
51
global $ mockPHPFunctions ;
52
+ $ mockPHPFunctions = true ;
56
53
require_once __DIR__ . '/_files/mock_ini_set.php ' ;
57
54
require_once __DIR__ . '/_files/mock_session_regenerate_id.php ' ;
58
55
@@ -84,5 +81,11 @@ public function testSessionManagerConstructor()
84
81
$ this ->objectManager ->getObject (\Magento \Framework \Session \SessionManager::class);
85
82
$ this ->assertTrue (SessionManagerTest::$ isIniSetInvoked );
86
83
}
84
+
85
+ protected function tearDown ()
86
+ {
87
+ global $ mockPHPFunctions ;
88
+ $ mockPHPFunctions = false ;
89
+ }
87
90
}
88
91
}
You can’t perform that action at this time.
0 commit comments