1 | <?php |
||
31 | abstract class DoctrineOrmTestCase extends \PHPUnit_Framework_TestCase |
||
32 | { |
||
33 | /** |
||
34 | * @var EntityManager |
||
35 | */ |
||
36 | protected $em; |
||
37 | |||
38 | /** |
||
39 | * EntityManager mock object together with |
||
40 | * annotation mapping driver and pdo_sqlite |
||
41 | * database in memory. |
||
42 | * |
||
43 | * @param EventManager $evm |
||
44 | * @param Configuration $config |
||
45 | * |
||
46 | * @return EntityManager |
||
47 | */ |
||
48 | final protected function getMockSqliteEntityManager(EventManager $evm = null, Configuration $config = null) |
||
67 | |||
68 | /** |
||
69 | * Creates default mapping driver. |
||
70 | * |
||
71 | * @return AnnotationDriver |
||
72 | */ |
||
73 | final protected function getMetadataDriverImplementation() |
||
77 | |||
78 | /** |
||
79 | * Get a list of used fixture classes. |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | abstract protected function getUsedEntityFixtures(); |
||
84 | |||
85 | /** |
||
86 | * Get annotation mapping configuration. |
||
87 | * |
||
88 | * @return Configuration |
||
89 | */ |
||
90 | final protected function getMockAnnotatedConfig() |
||
99 | } |
||
100 |