mirror of
https://github.com/pestphp/pest.git
synced 2026-07-21 17:10:03 +02:00
12 lines
440 B
PHP
12 lines
440 B
PHP
<?php
|
|
|
|
pest()->presets()->custom('myFramework', fn (array $userNamespaces): array => [
|
|
expect($userNamespaces)->toBe(['Pest']),
|
|
]);
|
|
|
|
test('preset invalid name', function (): void {
|
|
$this->preset()->myAnotherFramework();
|
|
})->throws(InvalidArgumentException::class, 'The preset [myAnotherFramework] does not exist. The available presets are [php, laravel, strict, security, relaxed, myFramework].');
|
|
|
|
arch()->preset()->myFramework();
|