--TEST-- Test UrlValidationErrorType singleton --EXTENSIONS-- uri --FILE-- getMessage() . "\n"; var_dump($e->errors[0]->type === \Uri\WhatWg\UrlValidationErrorType::PortOutOfRange); } ?> --EXPECT-- The specified URI is malformed (PortOutOfRange) bool(true)