Prepare tests for running on PHP 8

This commit is contained in:
Ben Ramsey
2021-09-23 13:58:48 -05:00
parent e2ec78e3d9
commit c9ed6dd82f
25 changed files with 189 additions and 169 deletions
+8 -6
View File
@@ -8,9 +8,11 @@ use AspectMock\Kernel;
require_once __DIR__ . '/../vendor/autoload.php'; // composer autoload
require_once __DIR__ . '/phpstan-bootstrap.php';
$kernel = Kernel::getInstance();
$kernel->init([
'debug' => true,
'cacheDir' => sys_get_temp_dir(),
'includePaths' => [__DIR__ . '/../src']
]);
if (PHP_MAJOR_VERSION < 8) {
$kernel = Kernel::getInstance();
$kernel->init([
'debug' => true,
'cacheDir' => sys_get_temp_dir(),
'includePaths' => [__DIR__ . '/../src']
]);
}