protected function setUp() { if (!class_exists('Symfony\\Component\\Security\\Core\\SecurityContext')) { $this->markTestSkipped('The "Security" component is not available'); } parent::setUp(); }
protected function setUp() { if (!class_exists('Symfony\\Component\\Form\\Form')) { $this->markTestSkipped('The "Form" component is not available'); } parent::setUp(); $this->em = $this->createTestEntityManager(); }
protected function setUp() { if (!class_exists('Symfony\\Component\\Form\\Form')) { $this->markTestSkipped('The "Form" component is not available'); } parent::setUp(); $this->em = $this->createTestEntityManager(); $schemaTool = new SchemaTool($this->em); $classes = array($this->em->getClassMetadata(self::ITEM_GROUP_CLASS), $this->em->getClassMetadata(self::SINGLE_IDENT_CLASS), $this->em->getClassMetadata(self::SINGLE_STRING_IDENT_CLASS), $this->em->getClassMetadata(self::COMPOSITE_IDENT_CLASS)); try { $schemaTool->dropSchema($classes); } catch (\Exception $e) { } try { $schemaTool->createSchema($classes); } catch (\Exception $e) { } }