WokerTask/vendor/topthink/think-queue/tests/TestCase.php

24 lines
380 B
PHP
Raw Permalink Normal View History

2023-12-27 14:06:33 +08:00
<?php
namespace think\test\queue;
use Mockery as m;
use Mockery\MockInterface;
use think\App;
abstract class TestCase extends \PHPUnit\Framework\TestCase
{
/** @var App|MockInterface */
protected $app;
public function tearDown()
{
m::close();
}
protected function setUp()
{
$this->app = m::mock(App::class)->makePartial();
}
}