Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c678fe

Browse filesBrowse files
committed
[PhpUnitBridge] run PHPUnit in the same process
1 parent 61a67ec commit 9c678fe
Copy full SHA for 9c678fe

File tree

Expand file treeCollapse file tree

1 file changed

+1
-11
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-11
lines changed

‎src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/bin/simple-phpunit
+1-11Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,7 @@ if ($components) {
180180
}
181181
}
182182
} elseif (!isset($argv[1]) || 'install' !== $argv[1] || file_exists('install')) {
183-
// Run regular phpunit in a subprocess
184-
185-
$errFile = tempnam(sys_get_temp_dir(), 'phpunit.stderr.');
186-
if ($proc = proc_open(sprintf($cmd, '', ' 2> '.escapeshellarg($errFile)), array(1 => array('pipe', 'w')), $pipes)) {
187-
stream_copy_to_stream($pipes[1], STDOUT);
188-
fclose($pipes[1]);
189-
$exit = proc_close($proc);
190-
191-
readfile($errFile);
192-
unlink($errFile);
193-
}
183+
include "$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit";
194184

195185
if (!file_exists($component = array_pop($argv))) {
196186
$component = basename($oldPwd);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.