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