Esempio n. 1
0
 /**
  * @test
  */
 public function doesNotMatch()
 {
     $matcher = new LessThanOrEquals(1);
     $this->assertThat($matcher->matches(2), $this->isFalse());
 }
Esempio n. 2
0
 /**
  * @param mixed $minValue
  * @param mixed $maxValue
  * @return $this
  */
 public function isBetween($minValue, $maxValue)
 {
     return $this->addMatcher(GreaterThanOrEquals::build($minValue))->addMatcher(LessThanOrEquals::build($maxValue));
 }