Mocks validate for PHP < 5.5