feat(describe): improves logic around hooks

This commit is contained in:
Nuno Maduro
2023-05-24 23:21:15 +01:00
parent 9c0e5ddfc6
commit 465c65243d
15 changed files with 433 additions and 35 deletions

View File

@ -21,6 +21,11 @@ final class TestCaseMethodFactory
{
use HigherOrderable;
/**
* D=fghjkl
*/
public ?string $describing = null;
/**
* Determines if the Test Case Method is a "todo".
*/
@ -84,6 +89,7 @@ final class TestCaseMethodFactory
$testCase = TestSuite::getInstance()->tests->get($this->filename);
$concrete->__describeDescription = $this->describing; // @phpstan-ignore-line
$testCase->factoryProxies->proxy($concrete);
$this->factoryProxies->proxy($concrete);