mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Merge pull request #13683 from gersonfs/2.x
Solving headers already sent bug on sessions whit phpunit.phar
This commit is contained in:
commit
d2e1681eb8
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…
Add table
Reference in a new issue