function it_uses_lexer_for_checking_supports_of_a_matcher() { $this->lexer->supports('beSomething', [''])->willReturn(true)->shouldBeCalled(); $this->lexer->supports('beSomething', ['', ''])->willReturn(true)->shouldBeCalled(); $this->lexer->supports('beSomething', [])->willReturn(false)->shouldBeCalled(); $this->supports('beSomething', null, [''])->shouldReturn(true); $this->supports('beSomething', null, ['', ''])->shouldReturn(true); $this->supports('beSomething', null, [])->shouldReturn(false); }
/** * Uses lexer to check if name of match is supported * * @param string $name * @param mixed $subject * @param array $arguments * * @return bool */ public function supports($name, $subject, array $arguments) { return $this->lexer->supports($name, $arguments); }