preg_match returns int, wrong triple equal

While i was playing with unit testing #406, saw this code that never throw exception.

preg match returns an integer http://php.net/manual/es/function.preg-match.php, triple equal always return false


Thanks