mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fixes filter
This commit is contained in:
@ -45,6 +45,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace PHPUnit\Runner\Filter;
|
||||
|
||||
use Pest\Contracts\HasPrintableTestCaseName;
|
||||
use PHPUnit\Framework\Test;
|
||||
use PHPUnit\Framework\TestSuite;
|
||||
use PHPUnit\Runner\PhptTestCase;
|
||||
@ -97,7 +98,11 @@ abstract class NameFilterIterator extends RecursiveFilterIterator
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($test instanceof HasPrintableTestCaseName) {
|
||||
$name = $test::getPrintableTestCaseName().'::'.$test->getPrintableTestCaseMethodName();
|
||||
} else {
|
||||
$name = $test::class.'::'.$test->nameWithDataSet();
|
||||
}
|
||||
|
||||
$accepted = @preg_match($this->regularExpression, $name, $matches) === 1;
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Pest;
|
||||
|
||||
function version(): string
|
||||
{
|
||||
return '3.0.0-beta-2';
|
||||
return '3.0.0-beta-3';
|
||||
}
|
||||
|
||||
function testDirectory(string $file = ''): string
|
||||
|
||||
@ -1076,8 +1076,8 @@
|
||||
! a "describe" group of tests → notice → This is a notice description // tests/Features/Notices.php:11
|
||||
|
||||
PASS Tests\Features\Pr
|
||||
✓ it may be associated with an pr #2
|
||||
✓ nested → it may be associated with an pr #3
|
||||
✓ it may be associated with an pr #1, #2
|
||||
✓ nested → it may be associated with an pr #1, #4, #5, #6, #3
|
||||
// an note between an the pr
|
||||
|
||||
PASS Tests\Features\Repeat
|
||||
|
||||
Reference in New Issue
Block a user