mirror of
https://github.com/pestphp/pest.git
synced 2026-04-20 22:20:17 +02:00
29 lines
554 B
PHP
29 lines
554 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 Strict implements ArchPreset
|
|
{
|
|
/**
|
|
* Boots the arch preset.
|
|
*
|
|
* @param array<string> $baseNamespaces
|
|
*/
|
|
public function boot(TestCall $testCall, array $baseNamespaces): TestCall|ArchExpectation
|
|
{
|
|
return $testCall
|
|
->expect($baseNamespaces)
|
|
->each
|
|
->toUseStrictTypes();
|
|
}
|
|
}
|