Add utility function for PHPUnit