You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
380 B
23 lines
380 B
<?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();
|
|
}
|
|
}
|
|
|