public getVersion ( ) : string | ||
return | string | $version |
public function getVersion()
{
return $this->version;
}
/** * Create migration with description */ public function testCreateVersionWithCustomName() { $versionName = '003'; $versionDescription = 'My super migration'; $version = new Version(new Configuration($this->getSqliteConnection()), $versionName, 'Doctrine\\DBAL\\Migrations\\Tests\\Stub\\VersionDummyDescription'); $this->assertEquals($versionName, $version->getVersion()); $this->assertEquals($versionDescription, $version->getMigration()->getDescription()); }