/** * TestGetVersionByName method * * @return void */ public function testGetVersionByName() { $Version = new MigrationVersion(array('jumpTo' => '007_schema_dump')); $result = $Version->getVersionByName($this->_mapping()); $this->assertEquals(7, $result); $Version = new MigrationVersion(array('jumpTo' => '00_schema_dump')); $result = $Version->getVersionByName($this->_mapping()); $this->assertFalse($result); }