mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
25 lines
436 B
PHP
25 lines
436 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\CustomTestCase;
|
|
|
|
use function PHPUnit\Framework\assertTrue;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ExecutedTest extends TestCase
|
|
{
|
|
public static $executed = false;
|
|
|
|
/** @test */
|
|
public function testThatGetsExecuted(): void
|
|
{
|
|
self::$executed = true;
|
|
|
|
assertTrue(true);
|
|
}
|
|
}
|
|
|
|
// register_shutdown_function(fn () => assertTrue(ExecutedTest::$executed));
|