TestCase.php 380 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace think\test\queue;
  3. use Mockery as m;
  4. use Mockery\MockInterface;
  5. use think\App;
  6. abstract class TestCase extends \PHPUnit\Framework\TestCase
  7. {
  8. /** @var App|MockInterface */
  9. protected $app;
  10. public function tearDown()
  11. {
  12. m::close();
  13. }
  14. protected function setUp()
  15. {
  16. $this->app = m::mock(App::class)->makePartial();
  17. }
  18. }