File tree Expand file tree Collapse file tree 2 files changed +3
-20
lines changed
src/Symfony/Component/Process/Tests Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -237,4 +237,6 @@ jobs:
237
237
tar -xjf php-8.1.2-pcntl-sigchild.tar.bz2
238
238
cd ..
239
239
240
+ mkdir -p /opt/php/lib
241
+ echo memory_limit=-1 > /opt/php/lib/php.ini
240
242
./build/php/bin/php ./phpunit --colors=always src/Symfony/Component/Process
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ public function testFindWithOpenBaseDir()
98
98
$ this ->markTestSkipped ('Cannot test when open_basedir is set ' );
99
99
}
100
100
101
+ putenv ('PATH= ' .\dirname (\PHP_BINARY ));
101
102
$ this ->iniSet ('open_basedir ' , \dirname (\PHP_BINARY ).\PATH_SEPARATOR .'/ ' );
102
103
103
104
$ finder = new ExecutableFinder ();
@@ -106,26 +107,6 @@ public function testFindWithOpenBaseDir()
106
107
$ this ->assertSamePath (\PHP_BINARY , $ result );
107
108
}
108
109
109
- /**
110
- * @runInSeparateProcess
111
- */
112
- public function testFindProcessInOpenBasedir ()
113
- {
114
- if (\ini_get ('open_basedir ' )) {
115
- $ this ->markTestSkipped ('Cannot test when open_basedir is set ' );
116
- }
117
- if ('\\' === \DIRECTORY_SEPARATOR ) {
118
- $ this ->markTestSkipped ('Cannot run test on windows ' );
119
- }
120
-
121
- $ this ->iniSet ('open_basedir ' , \PHP_BINARY .\PATH_SEPARATOR .'/ ' );
122
-
123
- $ finder = new ExecutableFinder ();
124
- $ result = $ finder ->find ($ this ->getPhpBinaryName (), false );
125
-
126
- $ this ->assertSamePath (\PHP_BINARY , $ result );
127
- }
128
-
129
110
public function testFindBatchExecutableOnWindows ()
130
111
{
131
112
if (\ini_get ('open_basedir ' )) {
You can’t perform that action at this time.
0 commit comments