negativeMatch() public method

Evaluates negative match.
public negativeMatch ( string $name, mixed $subject, array $arguments )
$name string
$subject mixed
$arguments array
示例#1
0
 function it_calls_a_negative_match_on_matcher(Matcher $matcher)
 {
     $alias = 'somealias';
     $subject = 'subject';
     $arguments = array();
     $matcher->negativeMatch($alias, $subject, $arguments)->shouldBeCalled();
     $this->match($alias, $subject, $arguments);
 }
示例#2
0
 /**
  * @param string $alias
  * @param mixed  $subject
  * @param array  $arguments
  *
  * @return mixed
  */
 public function match($alias, $subject, array $arguments = array())
 {
     return $this->matcher->negativeMatch($alias, $subject, $arguments);
 }