mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 22:33:35 +02:00
25 lines
646 B
PHP
25 lines
646 B
PHP
<?php
|
|
|
|
// Only ever run through `tests/Features/Tia.php`, against a seeded TIA graph.
|
|
// Both hooks throw, so a replayed test that wrongly runs one fails the run.
|
|
|
|
beforeEach(function (): void {
|
|
throw new RuntimeException('The beforeEach hook must not run for replayed tests.');
|
|
});
|
|
|
|
afterEach(function (): void {
|
|
throw new RuntimeException('The afterEach hook must not run for replayed tests.');
|
|
});
|
|
|
|
test('replayed pass', function (): void {
|
|
expect(true)->toBeTrue();
|
|
});
|
|
|
|
test('replayed skip', function (): void {
|
|
expect(true)->toBeTrue();
|
|
});
|
|
|
|
test('replayed incomplete', function (): void {
|
|
expect(true)->toBeTrue();
|
|
});
|