Ejemplo n.º 1
0
 /**
  * @test
  */
 public function doesNotMatch()
 {
     $matcher = new CallableMatcher(function ($value) {
         return $value === "foo";
     });
     $this->assertThat($matcher->matches("bar"), $this->isFalse());
 }
Ejemplo n.º 2
0
 /**
  * @param callable $callable
  * @return $this
  */
 public function matches($callable)
 {
     return $this->addMatcher(CallableMatcher::build($callable));
 }