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