[Validator] Fixed tests under PHP<5.3.9

The new implementation is disabled on those PHP versions.