chore: makes tests pass

This commit is contained in:
Nuno Maduro
2024-01-08 13:16:53 +00:00
parent 53dc9ffa06
commit bf573b3cac
12 changed files with 21 additions and 45 deletions

View File

@ -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);
}
}
}

View File

@ -6,7 +6,7 @@ namespace Pest;
function version(): string
{
return '2.30.0';
return '3.0.0-dev-0001';
}
function testDirectory(string $file = ''): string

View File

@ -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];
}