/** * @covers \Phinx\Config\Config::getMigrationBaseClassName */ public function testGetMigrationBaseClassNameGetsAlternativeBaseClassWithNamespace() { $config = new Config(array('migration_base_class' => 'Phinx\\Migration\\AlternativeAbstractMigration')); $this->assertEquals('Phinx\\Migration\\AlternativeAbstractMigration', $config->getMigrationBaseClassName(false)); }
/** * Checks if base class is returned correctly when specified without * a namespace. * * @covers \Phinx\Config\Config::getMigrationBaseClassName */ public function testGetMigrationBaseClassNameNoNamespaceNoDrop() { $config = new Config(array('migration_base_class' => 'BaseMigration')); $this->assertEquals('BaseMigration', $config->getMigrationBaseClassName(false)); }