enhance test run (#193)

This commit is contained in:
sunxyw
2022-12-23 17:16:08 +08:00
committed by GitHub
parent 9128efbaa1
commit 5e8f80b626
8 changed files with 94 additions and 23 deletions

27
tests/TestCase.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace Tests;
use Prophecy\Prophet;
/**
* @internal
*/
class TestCase extends \PHPUnit\Framework\TestCase
{
protected Prophet $prophet;
protected function setUp(): void
{
parent::setUp();
$this->prophet = new Prophet();
}
protected function tearDown(): void
{
parent::tearDown();
$this->prophet->checkPredictions();
}
}