fixes tests

This commit is contained in:
Nuno Maduro
2024-06-09 00:05:18 +01:00
parent 60b1e63c23
commit bd16769b93
3 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,7 @@ final class Base implements ArchPreset
*/
public function boot(TestCall $testCall, array $baseNamespace): TestCall|ArchExpectation
{
return $testCall
return $testCall // @phpstan-ignore-line
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
->not
->toBeUsed();

View File

@ -20,7 +20,7 @@ final class Strict implements ArchPreset
*/
public function boot(TestCall $testCall, array $baseNamespaces): TestCall|ArchExpectation
{
return $testCall
return $testCall // @phpstan-ignore-line
->expect($baseNamespaces)
->each
->toUseStrictTypes();

View File

@ -15,6 +15,8 @@ final class Preset
{
/**
* The application / package base namespaces.
*
* @var ?array<int, string>
*/
private static ?array $baseNamespaces = null;
@ -46,6 +48,8 @@ final class Preset
/**
* Get the base namespaces for the application / package.
*
* @return array<int, string>
*/
private function baseNamespaces(): array
{