public function testRaiseVersion() { $version = new Version(2, 0); $version->raiseVersion(1, 5); $this->assertEquals(2, $version->getMajor()); $this->assertEquals(0, $version->getMinor()); $version->raiseVersion(3, 0); $this->assertEquals(3, $version->getMajor()); $this->assertEquals(0, $version->getMinor()); $version->raiseVersion(3, 1); $this->assertEquals(3, $version->getMajor()); $this->assertEquals(1, $version->getMinor()); }