mirror of
https://github.com/pestphp/pest.git
synced 2026-03-08 00:37:22 +01:00
feat: note()
This commit is contained in:
16
src/TestCaseMethodFilters/NotesTestCaseFilter.php
Normal file
16
src/TestCaseMethodFilters/NotesTestCaseFilter.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pest\TestCaseMethodFilters;
|
||||
|
||||
use Pest\Contracts\TestCaseMethodFilter;
|
||||
use Pest\Factories\TestCaseMethodFactory;
|
||||
|
||||
final class NotesTestCaseFilter implements TestCaseMethodFilter
|
||||
{
|
||||
public function accept(TestCaseMethodFactory $factory): bool
|
||||
{
|
||||
return count($factory->notes) > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user