mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 08:05:34 +08:00
enhance test run (#193)
This commit is contained in:
27
tests/TestCase.php
Normal file
27
tests/TestCase.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user