mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Solving headers already sent bug on sessions whit phpunit.phar
This commit is contained in:
parent
46068ac65b
commit
cf49efdf0e
1 changed files with 2 additions and 0 deletions
|
@ -170,7 +170,9 @@ class CakeTestSuiteDispatcher {
|
|||
} elseif (is_file($vendor . DS . 'phpunit.phar')) {
|
||||
$backup = $GLOBALS['_SERVER']['SCRIPT_NAME'];
|
||||
$GLOBALS['_SERVER']['SCRIPT_NAME'] = '-';
|
||||
ob_start();
|
||||
$included = include_once $vendor . DS . 'phpunit.phar';
|
||||
ob_end_clean();
|
||||
$GLOBALS['_SERVER']['SCRIPT_NAME'] = $backup;
|
||||
return $included;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue