Exemplo n.º 1
0
 /**
  * Range constructor.
  *
  * @param string $expression
  */
 public function __construct($expression)
 {
     $expression = (string) $expression;
     $this->originalString = $expression;
     $this->rootExpression = ExpressionParser::parseExpression($expression);
 }
Exemplo n.º 2
0
 /**
  * @expectedException \Omines\Semver\Exception\SemverException
  * @expectedExceptionMessage Inequality operator requires exact version
  */
 public function testInvalidInequalityException()
 {
     ExpressionParser::parseExpression('!=1.x');
 }