mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fixes tests
This commit is contained in:
@ -20,7 +20,7 @@ final class Base implements ArchPreset
|
|||||||
*/
|
*/
|
||||||
public function boot(TestCall $testCall, array $baseNamespace): TestCall|ArchExpectation
|
public function boot(TestCall $testCall, array $baseNamespace): TestCall|ArchExpectation
|
||||||
{
|
{
|
||||||
return $testCall
|
return $testCall // @phpstan-ignore-line
|
||||||
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
|
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
|
||||||
->not
|
->not
|
||||||
->toBeUsed();
|
->toBeUsed();
|
||||||
|
|||||||
@ -20,7 +20,7 @@ final class Strict implements ArchPreset
|
|||||||
*/
|
*/
|
||||||
public function boot(TestCall $testCall, array $baseNamespaces): TestCall|ArchExpectation
|
public function boot(TestCall $testCall, array $baseNamespaces): TestCall|ArchExpectation
|
||||||
{
|
{
|
||||||
return $testCall
|
return $testCall // @phpstan-ignore-line
|
||||||
->expect($baseNamespaces)
|
->expect($baseNamespaces)
|
||||||
->each
|
->each
|
||||||
->toUseStrictTypes();
|
->toUseStrictTypes();
|
||||||
|
|||||||
@ -15,6 +15,8 @@ final class Preset
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The application / package base namespaces.
|
* The application / package base namespaces.
|
||||||
|
*
|
||||||
|
* @var ?array<int, string>
|
||||||
*/
|
*/
|
||||||
private static ?array $baseNamespaces = null;
|
private static ?array $baseNamespaces = null;
|
||||||
|
|
||||||
@ -46,6 +48,8 @@ final class Preset
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the base namespaces for the application / package.
|
* Get the base namespaces for the application / package.
|
||||||
|
*
|
||||||
|
* @return array<int, string>
|
||||||
*/
|
*/
|
||||||
private function baseNamespaces(): array
|
private function baseNamespaces(): array
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user