1..69 # ->getMimeTypesFromCategory() - throws an InvalidArgumentException if the category does not exist - returns an array of mime types for a given category - returns an array of mime types for a given category # ->guessFromFileinfo() - guesses the type of a given file - returns null if the file type is not guessable # ->guessFromMimeContentType() - guesses the type of a given file - returns null if the file type is not guessable # ->guessFromFileBinary() - guesses the type of a given file # Failed test (./sfValidatorFileTest.php at line 98) # got: NULL # expected: 'text/plain' - returns null if the file type is not guessable - returns correct type if file is guessable # Failed test (./sfValidatorFileTest.php at line 100) # got: NULL # expected: 'application/x-executable' # ->getMimeType() - guesses the type of a given file - returns the default type if the file type is not guessable - takes all guessers from the mime_type_guessers option # ->clean() - throws an sfValidatorError if the given value is not well formatted - throws a sfValidatorError - returns a sfValidatedFile instance - returns a sfValidatedFile with an empty original name if the name is not passed in the initial value - returns a sfValidatedFile with a computed file size if the size is not passed in the initial value - returns a sfValidatedFile with a guessed content type - can take a option - throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) - throws an error code of max_size - throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) - throws an error code of max_size - throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) - throws an error code of partial - throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) - throws an error code of no_tmp_dir - throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) - throws an error code of cant_write - throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) - throws an error code of extension # max file size - throws an sfValidatorError if the file size is too large - throws an error code of max_size # mime types - throws an sfValidatorError if the file mime type is not in mime_types option - throws an error code of mime_types - throws an sfValidatorError if the file is required and no file is uploaded - throws an error code of required - throws an sfValidatorError if the file is required and no file is uploaded - throws an error code of required - handles the required option correctly # ->getOriginalName() ->getTempName() ->getSize() ->getType() - returns the original name - returns the temp name - returns the content type - returns the size of the uploaded file # ->save() ->isSaved() ->getSavedName() - returns false if the file has not been saved - returns null if the file has not been saved - returns the saved filename - saves the file to the given path - returns true if the file has been saved - returns the saved file name - returns the saved filename relative to the path given - saves the file to the given path - returns the saved file name - returns the saved filename relative to the path given - saves the file to the given path and uses the path if the file is not absolute - returns the saved file name - returns the generated file name is none was given - returns the saved file name - throws an Exception if you don't give a filename and the path is empty - throws an Exception if the directory already exists and is not a directory # ->getExtension() - returns file extension based on the content type - returns file extension based on the content type - returns an empty string if it does not know the content type - returns an empty string if the content type is empty - takes a default extension as its first argument # ->getOriginalExtension() - returns the extension based on the uploaded file name - returns an empty extension if the uploaded file name has no extension - takes a default extension as its first argument # Looks like you failed 2 tests of 69.