add HttpEventListener test (#200)

This commit is contained in:
sunxyw
2022-12-25 19:29:44 +08:00
committed by GitHub
parent ca430123c9
commit ed5a9c6c12
7 changed files with 161 additions and 21 deletions

View File

@@ -4,24 +4,12 @@ declare(strict_types=1);
namespace Tests;
use Prophecy\Prophet;
use Prophecy\PhpUnit\ProphecyTrait;
/**
* @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();
}
use ProphecyTrait;
}