mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
14 lines
454 B
PHP
14 lines
454 B
PHP
<?php
|
|
|
|
pest()->presets()->custom('myFramework', function (array $userNamespaces) {
|
|
return [
|
|
expect($userNamespaces)->toBe(['Pest']),
|
|
];
|
|
});
|
|
|
|
test('preset invalid name', function () {
|
|
$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();
|