mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01: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();
|
|
}
|
|
}
|