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);
|
}, $targets);
|
||||||
|
|
||||||
$this->targets = array_reduce($targets, function (array $accumulator, string $target): array {
|
$this->targets = array_reduce($targets, function (array $accumulator, string $target): array {
|
||||||
if ($matches = glob($target)) {
|
if (($matches = glob($target)) != false) {
|
||||||
foreach ($matches as $file) {
|
foreach ($matches as $file) {
|
||||||
$accumulator[] = (string) realpath($file);
|
$accumulator[] = (string) realpath($file);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
uses(Tests\CustomTestCase\CustomTestCase::class)->in('../*/');
|
|
||||||
|
|
||||||
test('closure was bound to CustomTestCase', function () {
|
test('closure was bound to CustomTestCase', function () {
|
||||||
$this->assertCustomTrue();
|
$this->assertCustomTrue();
|
||||||
});
|
});
|
||||||
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
uses(Tests\CustomTestCase\CustomTestCase::class)->in('*.php');
|
|
||||||
|
|
||||||
test('closure was bound to CustomTestCase', function () {
|
test('closure was bound to CustomTestCase', function () {
|
||||||
$this->assertCustomTrue();
|
$this->assertCustomTrue();
|
||||||
});
|
});
|
||||||
@ -1,9 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Tests\CustomTestCase\CustomTestCase;
|
||||||
use Tests\CustomTestCaseInSubFolders\SubFolder\SubFolder\CustomTestCaseInSubFolder;
|
use Tests\CustomTestCaseInSubFolders\SubFolder\SubFolder\CustomTestCaseInSubFolder;
|
||||||
|
|
||||||
uses(CustomTestCaseInSubFolder::class)->in('PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder');
|
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');
|
uses()->group('integration')->in('Visual');
|
||||||
|
|
||||||
// NOTE: global test value container to be mutated and checked across files, as needed
|
// NOTE: global test value container to be mutated and checked across files, as needed
|
||||||
|
|||||||
Reference in New Issue
Block a user