| 1 | <?php |
||
| 5 | abstract class EntityTestCase extends BasicTestCase |
||
| 6 | { |
||
| 7 | protected $exceptions = array( |
||
| 8 | 'BreadcrumbsItem.php', |
||
| 9 | ); |
||
| 10 | |||
| 11 | protected $tool; |
||
| 12 | |||
| 13 | public function __construct() |
||
| 19 | |||
| 20 | public function setUp() |
||
| 21 | { |
||
| 22 | parent::setUp(); |
||
| 23 | |||
| 24 | $this->tool->createSchema($this->getClassesMetadata(__DIR__.'/../Entity', 'WebCMS\\Entity')); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function tearDown() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $path |
||
| 39 | * @param string $namespace |
||
| 40 | */ |
||
| 41 | protected function getClassesMetadata($path, $namespace) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $path |
||
| 59 | */ |
||
| 60 | private function isEntity($path) |
||
| 70 | } |
||
| 71 |