chore: adjusts tests

This commit is contained in:
Nuno Maduro
2024-09-03 14:09:03 +01:00
parent 8920b850e1
commit e2d360b1b5
36 changed files with 187 additions and 84 deletions

View File

@ -8,13 +8,15 @@ use Pest\PendingCalls\UsesCall;
/**
* @internal
*
* @mixin UsesCall
*/
final class Configuration
final readonly class Configuration
{
/**
* The filename of the configuration.
*/
private readonly string $filename;
private string $filename;
/**
* Creates a new configuration instance.
@ -85,10 +87,20 @@ final class Configuration
}
/**
* Gets the context configuration.
* Gets the project configuration.
*/
public function context(): Configuration\Context
public function project(): Configuration\Project
{
return Configuration\Context::getInstance();
return Configuration\Project::getInstance();
}
/**
* Proxies calls to the uses method.
*
* @param array<array-key, mixed> $arguments
*/
public function __call(string $name, array $arguments): mixed
{
return $this->uses()->$name(...$arguments); // @phpstan-ignore-line
}
}