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;
|
namespace PHPUnit\Runner\Filter;
|
||||||
|
|
||||||
|
use Pest\Contracts\HasPrintableTestCaseName;
|
||||||
use PHPUnit\Framework\Test;
|
use PHPUnit\Framework\Test;
|
||||||
use PHPUnit\Framework\TestSuite;
|
use PHPUnit\Framework\TestSuite;
|
||||||
use PHPUnit\Runner\PhptTestCase;
|
use PHPUnit\Runner\PhptTestCase;
|
||||||
@ -97,7 +98,11 @@ abstract class NameFilterIterator extends RecursiveFilterIterator
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = $test::class.'::'.$test->nameWithDataSet();
|
if ($test instanceof HasPrintableTestCaseName) {
|
||||||
|
$name = $test::getPrintableTestCaseName().'::'.$test->getPrintableTestCaseMethodName();
|
||||||
|
} else {
|
||||||
|
$name = $test::class.'::'.$test->nameWithDataSet();
|
||||||
|
}
|
||||||
|
|
||||||
$accepted = @preg_match($this->regularExpression, $name, $matches) === 1;
|
$accepted = @preg_match($this->regularExpression, $name, $matches) === 1;
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace Pest;
|
|||||||
|
|
||||||
function version(): string
|
function version(): string
|
||||||
{
|
{
|
||||||
return '3.0.0-beta-2';
|
return '3.0.0-beta-3';
|
||||||
}
|
}
|
||||||
|
|
||||||
function testDirectory(string $file = ''): string
|
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
|
! a "describe" group of tests → notice → This is a notice description // tests/Features/Notices.php:11
|
||||||
|
|
||||||
PASS Tests\Features\Pr
|
PASS Tests\Features\Pr
|
||||||
✓ it may be associated with an pr #2
|
✓ it may be associated with an pr #1, #2
|
||||||
✓ nested → it may be associated with an pr #3
|
✓ nested → it may be associated with an pr #1, #4, #5, #6, #3
|
||||||
// an note between an the pr
|
// an note between an the pr
|
||||||
|
|
||||||
PASS Tests\Features\Repeat
|
PASS Tests\Features\Repeat
|
||||||
|
|||||||
Reference in New Issue
Block a user