Pass description into describe call

This commit is contained in:
jshayes
2024-11-11 15:45:16 -05:00
parent b5b8fab09b
commit 50ff347b59
4 changed files with 71 additions and 1056 deletions

View File

@ -26,21 +26,16 @@ final class DescribeCall
*/
private ?BeforeEachCall $currentBeforeEachCall = null;
/**
* The unique description for this describe block
*/
private readonly Description $description;
/**
* Creates a new Pending Call.
*/
public function __construct(
public readonly TestSuite $testSuite,
public readonly string $filename,
string $description,
public readonly Description $description,
public readonly Closure $tests
) {
$this->description = new Description($description);
//
}
/**