Exemplo n.º 1
0
 public function testImportVersion()
 {
     $this->assertSame($this->builder, $this->builder->importVersion(new Version(5, 6, 7, array('pre', '2', '3'), array('build', '2', '3'))));
     $this->assertSame(array('build', '2', '3'), $this->builder->getBuild());
     $this->assertSame(5, $this->builder->getMajor());
     $this->assertSame(6, $this->builder->getMinor());
     $this->assertSame(7, $this->builder->getPatch());
     $this->assertSame(array('pre', '2', '3'), $this->builder->getPreRelease());
 }