mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 17:57:23 +01:00
Fixes test suite
This commit is contained in:
@ -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)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user