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