function it_calls_a_positive_match_on_matcher(MatcherInterface $matcher) { $alias = 'somealias'; $subject = 'subject'; $arguments = array(); $matcher->positiveMatch($alias, $subject, $arguments)->shouldBeCalled(); $this->match($alias, $subject, $arguments); }
/** * * @param string $alias * @param mixed $subject * @param array $arguments * * @return mixed */ public function match($alias, $subject, array $arguments = array()) { return $this->matcher->positiveMatch($alias, $subject, $arguments); }