1 | <?php |
||
13 | class TestCase extends PHPUnitTestCase |
||
14 | { |
||
15 | /** |
||
16 | * @var boolean |
||
17 | */ |
||
18 | protected $hasDb = false; |
||
19 | |||
20 | /** |
||
21 | * @var EntityManager |
||
22 | */ |
||
23 | private $entityManager; |
||
24 | |||
25 | /** |
||
26 | * Creates a database if not done already. |
||
27 | */ |
||
28 | public function createDb() |
||
39 | |||
40 | /** |
||
41 | * Drops existing database |
||
42 | */ |
||
43 | public function dropDb() |
||
52 | |||
53 | /** |
||
54 | * Get EntityManager. |
||
55 | * |
||
56 | * @return EntityManager |
||
57 | */ |
||
58 | public function getEntityManager() |
||
70 | } |
||
71 |