Symfony\Bundle\DoctrineBundle\Tests\TestCase::setUp PHP 메소드

setUp() 보호된 메소드

protected setUp ( )
    protected function setUp()
    {
        if (!class_exists('Doctrine\\Common\\Version')) {
            $this->markTestSkipped('Doctrine is not available.');
        }
    }

Usage Example

 protected function setUp()
 {
     parent::setUp();
     $this->em = $this->createTestEntityManager();
     $schemaTool = new SchemaTool($this->em);
     $classes = array($this->em->getClassMetadata('Symfony\\Bundle\\DoctrineBundle\\Tests\\Form\\ValueTransformer\\Tag'));
     try {
         $schemaTool->dropSchema($classes);
     } catch (\Exception $e) {
     }
     try {
         $schemaTool->createSchema($classes);
     } catch (\Exception $e) {
     }
 }
All Usage Examples Of Symfony\Bundle\DoctrineBundle\Tests\TestCase::setUp