/** * @test */ public function doesNotMatch() { $matcher = new AndMatcher(); $matcher->addMatcher(new Is("foo")); $this->assertThat($matcher->matches("bar"), $this->isFalse()); }
/** * @param string $propertyName * @return AndMatcher */ public function addMatcherOnPropertyName($propertyName) { $this->currentMatcher = AndMatcher::build(); $this->matchersOnPropertyName[$propertyName] = $this->currentMatcher; return $this->currentMatcher; }