Doctrine\Tests\DBAL\Functional\Schema\SchemaManagerFunctionalTestCase::setUp PHP Method

setUp() protected method

protected setUp ( )
    protected function setUp()
    {
        parent::setUp();

        $class = get_class($this);
        $e = explode('\\', $class);
        $testClass = end($e);
        $dbms = strtolower(str_replace('SchemaManagerTest', null, $testClass));

        if ($this->_conn->getDatabasePlatform()->getName() !== $dbms) {
            $this->markTestSkipped('The ' . $testClass .' requires the use of ' . $dbms);
        }

        $this->_sm = $this->_conn->getSchemaManager();
    }

Usage Example

 protected function setUp()
 {
     parent::setUp();
     if (!Type::hasType('point')) {
         Type::addType('point', 'Doctrine\\Tests\\Types\\MySqlPointType');
     }
 }
All Usage Examples Of Doctrine\Tests\DBAL\Functional\Schema\SchemaManagerFunctionalTestCase::setUp