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