Fix LegacyEmptyPass tests in PHP 5.5+