mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat: initial work on presets
This commit is contained in:
28
src/ArchPresets/Base.php
Normal file
28
src/ArchPresets/Base.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?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
|
||||
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
|
||||
->not
|
||||
->toBeUsed();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user