Updated exception due to the PHPUnit throws a warning exception