new files
This commit is contained in:
23
pro_v3.5.1/vendor/topthink/think-queue/tests/TestCase.php
vendored
Normal file
23
pro_v3.5.1/vendor/topthink/think-queue/tests/TestCase.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user