1234567891011121314151617181920212223 |
- <?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();
- }
- }
|