mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
29 lines
618 B
PHP
29 lines
618 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\ArchPresets;
|
|
|
|
use Pest\Arch\Contracts\ArchExpectation;
|
|
use Pest\Contracts\ArchPreset;
|
|
use Pest\PendingCalls\TestCall;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class Base implements ArchPreset
|
|
{
|
|
/**
|
|
* Boots the arch preset.
|
|
*
|
|
* @param array<string> $baseNamespace
|
|
*/
|
|
public function boot(TestCall $testCall, array $baseNamespace): TestCall|ArchExpectation
|
|
{
|
|
return $testCall // @phpstan-ignore-line
|
|
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep', 'eval', 'ini_set'])
|
|
->not
|
|
->toBeUsed();
|
|
}
|
|
}
|