File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ protected function setUp(): void
23
23
'SPC_TARGET ' => getenv ('SPC_TARGET ' ),
24
24
'SPC_LIBC ' => getenv ('SPC_LIBC ' ),
25
25
];
26
+ // Temporarily set private GlobalEnvManager::$initialized to false (use reflection)
27
+ $ reflection = new \ReflectionClass (GlobalEnvManager::class);
28
+ $ property = $ reflection ->getProperty ('initialized ' );
29
+ $ property ->setValue (null , false );
26
30
}
27
31
28
32
protected function tearDown (): void
@@ -35,6 +39,10 @@ protected function tearDown(): void
35
39
putenv ("{$ key }= {$ value }" );
36
40
}
37
41
}
42
+ // Temporarily set private GlobalEnvManager::$initialized to false (use reflection)
43
+ $ reflection = new \ReflectionClass (GlobalEnvManager::class);
44
+ $ property = $ reflection ->getProperty ('initialized ' );
45
+ $ property ->setValue (null , true );
38
46
}
39
47
40
48
public function testGetInitializedEnv (): void
Original file line number Diff line number Diff line change @@ -34,17 +34,6 @@ protected function tearDown(): void
34
34
}
35
35
}
36
36
37
- /**
38
- * @dataProvider libcProvider
39
- */
40
- public function testIsStatic (string $ libc , bool $ expected ): void
41
- {
42
- putenv ("SPC_LIBC= {$ libc }" );
43
-
44
- $ result = SPCTarget::isStatic ();
45
- $ this ->assertEquals ($ expected , $ result );
46
- }
47
-
48
37
/**
49
38
* @dataProvider libcProvider
50
39
*/
You can’t perform that action at this time.
0 commit comments