Fixes test suite

This commit is contained in:
Nuno Maduro
2024-04-27 11:36:22 +01:00
parent f49d1e0e18
commit cfa00da885
15 changed files with 161 additions and 51 deletions

View File

@ -12,7 +12,7 @@ final class Attribute
/**
* @param iterable<int, string> $arguments
*/
public function __construct(public string $name, public iterable $arguments = [])
public function __construct(public string $name, public iterable $arguments)
{
//
}

View File

@ -29,9 +29,9 @@ final class TestCaseFactory
/**
* The list of attributes.
*
* @var iterable<int, Attribute>
* @var array<int, Attribute>
*/
public iterable $attributes = [];
public array $attributes = [];
/**
* The FQN of the Test Case class.

View File

@ -25,7 +25,7 @@ final class TestCaseMethodFactory
/**
* The list of attributes.
*
* @var array<int, class-string<Attribute>>
* @var array<int, Attribute>
*/
public array $attributes = [];
@ -95,6 +95,7 @@ final class TestCaseMethodFactory
$testCase = TestSuite::getInstance()->tests->get($this->filename);
assert($testCase instanceof TestCaseFactory);
$testCase->factoryProxies->proxy($concrete);
$this->factoryProxies->proxy($concrete);