2016-01-02 16:43:18 +03:00
|
|
|
<?php
|
2019-05-14 01:58:29 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2019-02-20 22:58:52 +03:00
|
|
|
namespace common\tests\unit;
|
2016-01-02 16:43:18 +03:00
|
|
|
|
2019-05-14 01:58:29 +03:00
|
|
|
use Codeception\Test\Unit;
|
2017-04-25 01:23:04 +03:00
|
|
|
use Mockery;
|
|
|
|
|
2019-05-14 01:58:29 +03:00
|
|
|
class TestCase extends Unit {
|
2016-01-21 00:14:29 +03:00
|
|
|
|
2016-10-29 00:47:31 +03:00
|
|
|
/**
|
2019-02-20 22:58:52 +03:00
|
|
|
* @var \common\tests\UnitTester
|
2016-10-29 00:47:31 +03:00
|
|
|
*/
|
|
|
|
protected $tester;
|
2016-01-21 00:14:29 +03:00
|
|
|
|
2019-08-02 15:57:17 +03:00
|
|
|
protected function tearDown(): void {
|
2018-04-17 23:47:25 +03:00
|
|
|
parent::tearDown();
|
|
|
|
Mockery::close();
|
|
|
|
}
|
|
|
|
|
2016-10-29 00:47:31 +03:00
|
|
|
/**
|
2019-07-15 01:59:56 +03:00
|
|
|
* A list of fixtures that will be loaded before the test, but after the database is cleaned up
|
2016-10-29 00:47:31 +03:00
|
|
|
*
|
|
|
|
* @url http://codeception.com/docs/modules/Yii2#fixtures
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2019-05-14 01:58:29 +03:00
|
|
|
public function _fixtures(): array {
|
2016-10-29 00:47:31 +03:00
|
|
|
return [];
|
|
|
|
}
|
2016-01-21 00:14:29 +03:00
|
|
|
|
2016-01-02 16:43:18 +03:00
|
|
|
}
|