Exemplo n.º 1
0
 /**
  * Imports the version string representation.
  *
  * @param string $version The string representation.
  *
  * @return Builder The Version builder.
  */
 public function importString($version)
 {
     return $this->importComponents(Parser::toComponents($version));
 }
Exemplo n.º 2
0
 public function testToComponentsInvalid()
 {
     $this->setExpectedException('Herrera\\Version\\Exception\\InvalidStringRepresentationException', 'The version string representation "test" is invalid.');
     Parser::toComponents('test');
 }