Validation::equal PHP Méthode

equal() public static méthode

public static equal ( $value, $compare )
    public static function equal($value, $compare)
    {
        return $value === $compare;
    }

Usage Example

 /**
  * @testdox equal should return false to number == 'number'
  */
 public function testInvalidEqualWithIdenticalComparison()
 {
     $value = 42;
     $compare = '42';
     $this->assertFalse(Validation::equal($value, $compare));
 }