feat: initial work on presets

This commit is contained in:
Nuno Maduro
2024-06-08 20:54:46 +01:00
parent c7bcb6eb7b
commit 60b1e63c23
9 changed files with 156 additions and 6 deletions

28
src/ArchPresets/Base.php Normal file
View 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();
}
}