mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix tests and static type check error
This commit is contained in:
@ -84,7 +84,7 @@ final class UsesCall
|
||||
}, $targets);
|
||||
|
||||
$this->targets = array_reduce($targets, function (array $accumulator, string $target): array {
|
||||
if ($matches = glob($target)) {
|
||||
if (($matches = glob($target)) != false) {
|
||||
foreach ($matches as $file) {
|
||||
$accumulator[] = (string) realpath($file);
|
||||
}
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
uses(Tests\CustomTestCase\CustomTestCase::class)->in('../*/');
|
||||
|
||||
test('closure was bound to CustomTestCase', function () {
|
||||
$this->assertCustomTrue();
|
||||
});
|
||||
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
uses(Tests\CustomTestCase\CustomTestCase::class)->in('*.php');
|
||||
|
||||
test('closure was bound to CustomTestCase', function () {
|
||||
$this->assertCustomTrue();
|
||||
});
|
||||
@ -1,9 +1,14 @@
|
||||
<?php
|
||||
|
||||
use Tests\CustomTestCase\CustomTestCase;
|
||||
use Tests\CustomTestCaseInSubFolders\SubFolder\SubFolder\CustomTestCaseInSubFolder;
|
||||
|
||||
uses(CustomTestCaseInSubFolder::class)->in('PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder');
|
||||
|
||||
uses(CustomTestCase::class)->in('PHPUnit/CustomTestCase/SubFolder/*/');
|
||||
|
||||
uses(CustomTestCase::class)->in('PHPUnit/CustomTestCase/SubFolder2/*AsPattern.php');
|
||||
|
||||
uses()->group('integration')->in('Visual');
|
||||
|
||||
// NOTE: global test value container to be mutated and checked across files, as needed
|
||||
|
||||
Reference in New Issue
Block a user