mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 09:47:23 +01:00
chore: makes tests pass
This commit is contained in:
@ -435,8 +435,8 @@ final class TestCall
|
||||
|
||||
$this->testSuite->tests->set($this->testCaseMethod);
|
||||
|
||||
foreach ($this->testCaseFactoryAttributes as $attribute) {
|
||||
$this->testSuite->tests->get($this->filename)->attributes[] = $attribute;
|
||||
if (! is_null($testCase = $this->testSuite->tests->get($this->filename))) {
|
||||
$testCase->attributes = array_merge($testCase->attributes, $this->testCaseFactoryAttributes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Pest;
|
||||
|
||||
function version(): string
|
||||
{
|
||||
return '2.30.0';
|
||||
return '3.0.0-dev-0001';
|
||||
}
|
||||
|
||||
function testDirectory(string $file = ''): string
|
||||
|
||||
@ -111,7 +111,7 @@ final class TestRepository
|
||||
/**
|
||||
* Gets the test case factory from the given filename.
|
||||
*/
|
||||
public function get(string $filename): TestCaseFactory
|
||||
public function get(string $filename): ?TestCaseFactory
|
||||
{
|
||||
return $this->testCases[$filename];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user