fix tests and static type check error

This commit is contained in:
Mohammad Zahed
2023-06-10 18:00:46 +03:00
parent e00efb1b6d
commit aa9fe351a6
4 changed files with 6 additions and 5 deletions

View File

@ -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);
}

View File

@ -1,7 +1,5 @@
<?php
uses(Tests\CustomTestCase\CustomTestCase::class)->in('../*/');
test('closure was bound to CustomTestCase', function () {
$this->assertCustomTrue();
});

View File

@ -1,7 +1,5 @@
<?php
uses(Tests\CustomTestCase\CustomTestCase::class)->in('*.php');
test('closure was bound to CustomTestCase', function () {
$this->assertCustomTrue();
});

View File

@ -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