Scientist\Matchers\StandardMatcher::match PHP Метод

match() публичный Метод

Determine whether two values match.
public match ( mixed $control, mixed $trial ) : boolean
$control mixed
$trial mixed
Результат boolean
    public function match($control, $trial)
    {
        return $control === $trial;
    }

Usage Example

Пример #1
0
 public function test_that_matcher_is_strict_with_matches()
 {
     $s = new StandardMatcher();
     $this->assertFalse($s->match(false, null));
 }
StandardMatcher