mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
feat(describe): improves logic around hooks
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user