mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 06:27:28 +02:00
20 lines
409 B
PHP
20 lines
409 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\TestCaseMethodFilters;
|
|
|
|
use Pest\Contracts\TestCaseMethodFilter;
|
|
use Pest\Factories\TestCaseMethodFactory;
|
|
|
|
final readonly class FlakyTestCaseFilter implements TestCaseMethodFilter
|
|
{
|
|
/**
|
|
* Filter the test case methods.
|
|
*/
|
|
public function accept(TestCaseMethodFactory $factory): bool
|
|
{
|
|
return $factory->flakyTries !== null;
|
|
}
|
|
}
|