public function testImportComponentsWithValues() { $this->assertSame($this->builder, $this->builder->importComponents(array(Parser::MAJOR => 5, Parser::MINOR => 6, Parser::PATCH => 7, Parser::PRE_RELEASE => array('pre', '2', '3'), Parser::BUILD => 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()); }