Scientist\Matchers\StandardMatcher::match PHP Méthode

match() public méthode

Determine whether two values match.
public match ( mixed $control, mixed $trial ) : boolean
$control mixed
$trial mixed
Résultat boolean
    public function match($control, $trial)
    {
        return $control === $trial;
    }

Usage Example

 public function test_that_matcher_is_strict_with_matches()
 {
     $s = new StandardMatcher();
     $this->assertFalse($s->match(false, null));
 }
StandardMatcher