diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 883e3fd60..0956b7db2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - php: ['7.3', '7.4', '8.0'] + php: ['7.4', '8.0'] dependency-version: [prefer-lowest, prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} diff --git a/composer.json b/composer.json index 2224ac7fb..97da50436 100644 --- a/composer.json +++ b/composer.json @@ -17,10 +17,10 @@ } ], "require": { - "php": "^7.3 || ^8.0", + "php": "^7.4 || ^8.0", "nunomaduro/collision": "^5.4.0", - "pestphp/pest-plugin": "^1.0.0", - "phpunit/phpunit": ">= 9.3.7 <= 9.5.6" + "pestphp/pest-plugin": "^1.0", + "phpunit/phpunit": "10.0.x-dev" }, "autoload": { "psr-4": { diff --git a/src/Actions/LoadStructure.php b/src/Actions/LoadStructure.php index 5cae76aa4..e1c690fdf 100644 --- a/src/Actions/LoadStructure.php +++ b/src/Actions/LoadStructure.php @@ -5,6 +5,7 @@ namespace Pest\Actions; use Pest\Support\Str; +use PHPUnit\TextUI\Configuration\Configuration; use function Pest\testDirectory; use PHPUnit\Util\FileLoader; use RecursiveDirectoryIterator; @@ -36,7 +37,7 @@ public static function in(string $rootPath): void $testsPath = $rootPath . DIRECTORY_SEPARATOR . testDirectory(); $load = function ($filename): bool { - return file_exists($filename) && (bool) FileLoader::checkAndLoad($filename); + return file_exists($filename) && (bool) include_once $filename; }; foreach (self::STRUCTURE as $filename) {