| 1 | <?php |
||
| 15 | abstract class DatabaseTestCase extends \PHPUnit_Extensions_Database_TestCase |
||
| 16 | { |
||
| 17 | protected static $migrationFileName = 'sqlite.sql'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @inheritdoc |
||
| 21 | */ |
||
| 22 | public function getConnection() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @inheritdoc |
||
| 29 | */ |
||
| 30 | public function getDataSet() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | protected function setUp() |
||
| 39 | { |
||
| 40 | if (Yii::$app->get('db', false) === null) { |
||
| 41 | $this->markTestSkipped(); |
||
| 42 | } else { |
||
| 43 | parent::setUp(); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | */ |
||
| 50 | public static function setUpBeforeClass() |
||
| 68 | } |