mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixed PHPUnit include bug.
Fixed vendor include path bug.
This commit is contained in:
parent
73310f9bfd
commit
5038e7eb38
1 changed files with 3 additions and 2 deletions
|
@ -138,13 +138,14 @@ class CakeTestSuiteDispatcher {
|
|||
*/
|
||||
public function loadTestFramework() {
|
||||
foreach (App::path('vendors') as $vendor) {
|
||||
if (is_dir($vendor . 'PHPUnit')) {
|
||||
$vendor = rtrim($vendor, DS);
|
||||
if (is_dir($vendor . DS . 'PHPUnit')) {
|
||||
ini_set('include_path', $vendor . PATH_SEPARATOR . ini_get('include_path'));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return include 'PHPUnit' . DS . 'Autoload.php';
|
||||
return (include('PHPUnit' . DS . 'Autoload.php')) !== false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue