1..69 # ->getMimeTypesFromCategory() ok 1 - ->getMimeTypesFromCategory() throws an InvalidArgumentException if the category does not exist ok 2 - ->getMimeTypesFromCategory() returns an array of mime types for a given category ok 3 - ->getMimeTypesFromCategory() returns an array of mime types for a given category # ->guessFromFileinfo() ok 4 - ->guessFromFileinfo() guesses the type of a given file ok 5 - ->guessFromFileinfo() returns null if the file type is not guessable # ->guessFromMimeContentType() ok 6 - ->guessFromMimeContentType() guesses the type of a given file ok 7 - ->guessFromMimeContentType() returns null if the file type is not guessable # ->guessFromFileBinary() ok 8 - ->guessFromFileBinary() guesses the type of a given file ok 9 - ->guessFromFileBinary() returns null if the file type is not guessable ok 10 - ->guessFromFileBinary() returns correct type if file is guessable # ->getMimeType() ok 11 - ->getMimeType() guesses the type of a given file ok 12 - ->getMimeType() returns the default type if the file type is not guessable ok 13 - ->getMimeType() takes all guessers from the mime_type_guessers option # ->clean() ok 14 - ->clean() throws an sfValidatorError if the given value is not well formatted ok 15 - ->clean() throws a sfValidatorError ok 16 - ->clean() returns a sfValidatedFile instance ok 17 - ->clean() returns a sfValidatedFile with an empty original name if the name is not passed in the initial value ok 18 - ->clean() returns a sfValidatedFile with a computed file size if the size is not passed in the initial value ok 19 - ->clean() returns a sfValidatedFile with a guessed content type ok 20 - ->clean() can take a validated_file_class option ok 21 - ->clean() throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) ok 22 - ->clean() throws an error code of max_size ok 23 - ->clean() throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) ok 24 - ->clean() throws an error code of max_size ok 25 - ->clean() throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) ok 26 - ->clean() throws an error code of partial ok 27 - ->clean() throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) ok 28 - ->clean() throws an error code of no_tmp_dir ok 29 - ->clean() throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) ok 30 - ->clean() throws an error code of cant_write ok 31 - ->clean() throws an sfValidatorError if the error code is not UPLOAD_ERR_OK (0) ok 32 - ->clean() throws an error code of extension # max file size ok 33 - ->clean() throws an sfValidatorError if the file size is too large ok 34 - ->clean() throws an error code of max_size # mime types ok 35 - ->clean() throws an sfValidatorError if the file mime type is not in mime_types option ok 36 - ->clean() throws an error code of mime_types ok 37 - ->clean() throws an sfValidatorError if the file is required and no file is uploaded ok 38 - ->clean() throws an error code of required ok 39 - ->clean() throws an sfValidatorError if the file is required and no file is uploaded ok 40 - ->clean() throws an error code of required ok 41 - ->clean() handles the required option correctly # ->getOriginalName() ->getTempName() ->getSize() ->getType() ok 42 - ->getOriginalName() returns the original name ok 43 - ->getTempName() returns the temp name ok 44 - ->getType() returns the content type ok 45 - ->getSize() returns the size of the uploaded file # ->save() ->isSaved() ->getSavedName() ok 46 - ->isSaved() returns false if the file has not been saved ok 47 - ->getSavedName() returns null if the file has not been saved ok 48 - ->save() returns the saved filename ok 49 - ->save() saves the file to the given path ok 50 - ->isSaved() returns true if the file has been saved ok 51 - ->getSavedName() returns the saved file name ok 52 - ->save() returns the saved filename relative to the path given ok 53 - ->save() saves the file to the given path ok 54 - ->getSavedName() returns the saved file name ok 55 - ->save() returns the saved filename relative to the path given ok 56 - ->save() saves the file to the given path and uses the path if the file is not absolute ok 57 - ->getSavedName() returns the saved file name ok 58 - ->save() returns the generated file name is none was given ok 59 - ->getSavedName() returns the saved file name ok 60 - ->save() throws an Exception if you don't give a filename and the path is empty ok 61 - ->save() throws an Exception if the directory already exists and is not a directory # ->getExtension() ok 62 - ->getExtension() returns file extension based on the content type ok 63 - ->getExtension() returns file extension based on the content type ok 64 - ->getExtension() returns an empty string if it does not know the content type ok 65 - ->getExtension() returns an empty string if the content type is empty ok 66 - ->getExtension() takes a default extension as its first argument # ->getOriginalExtension() ok 67 - ->getOriginalExtension() returns the extension based on the uploaded file name ok 68 - ->getOriginalExtension() returns an empty extension if the uploaded file name has no extension ok 69 - ->getOriginalExtension() takes a default extension as its first argument # Looks like everything went fine.