diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index af38229f..fe848aef 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -1,6 +1,7 @@ PASS Tests\Arch ✓ globals + ✓ dependencies ✓ contracts PASS Tests\Features\AfterAll @@ -942,4 +943,4 @@ PASS Tests\Visual\Version ✓ visual snapshot of help command output - Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 18 skipped, 643 passed (1585 assertions) \ No newline at end of file + Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 18 skipped, 644 passed (1586 assertions) \ No newline at end of file diff --git a/tests/Arch.php b/tests/Arch.php index dc91eb3f..eb47a06e 100644 --- a/tests/Arch.php +++ b/tests/Arch.php @@ -7,6 +7,23 @@ test('globals') ->not->toBeUsed() ->ignoring(Expectation::class); +test('dependencies') + ->expect('Pest') + ->toOnlyUse([ + 'dd', + 'dump', + 'expect', + 'uses', + 'Termwind', + 'ParaTest', + 'Pest\Arch', + 'Pest\Plugin', + 'NunoMaduro\Collision', + 'Whoops', + 'Symfony\Component\Console', + 'Symfony\Component\Process', + ])->ignoring(['Composer', 'PHPUnit', 'SebastianBergmann']); + test('contracts') ->expect('Pest\Contracts') ->toOnlyUse([ diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index 5a5f927c..6c4c6a0c 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -15,6 +15,6 @@ $run = function () { }; test('parallel', function () use ($run) { - expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 634 passed (1572 assertions)') + expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 635 passed (1573 assertions)') ->toContain('Parallel: 3 processes'); });