/** * Ensure validator is not affected by PHP bug #63976 */ public function testShouldHaveProperErrorMessageOnNotReadableFile() { $validator = new Zend_Validate_File_ExcludeMimeType('image/jpeg'); $this->assertFalse($validator->isValid('notexisting'), array('name' => 'notexisting')); $this->assertEquals(array('fileExcludeMimeTypeNotReadable' => "File 'notexisting' is not readable or does not exist"), $validator->getMessages()); }