Dotclear 2.25
|
Public Member Functions | |
setUp () | |
tearDown () | |
testScanDir () | |
testExtension () | |
testGetMimeType () | |
testMimeTypes () | |
testRegisterMimeType () | |
testFileIsDeletable () | |
testDirIsDeletable () | |
testDeltree () | |
testTouch () | |
testMakeDir () | |
testMakeDirWithParent () | |
testMakeDirImpossible () | |
testInheritChmod () | |
testPutContent () | |
testPutContentException () | |
testSize () | |
testStr2Bytes () | |
testUploadStatus () | |
testGetDirList () | |
testTidyFilename () | |
Protected Member Functions | |
cleanTemp () | |
|
protected |
References tests\unit\TEST_DIRECTORY.
Referenced by files\setUp(), and files\tearDown().
setUp | ( | ) |
References files\cleanTemp(), files\scandir(), and tests\unit\TEST_DIRECTORY.
tearDown | ( | ) |
References files\cleanTemp().
testScanDir | ( | ) |
Scan a directory. For that we use the /../fixtures/files which contains know files
References files\scandir(), and tests\unit\TEST_DIRECTORY.
testExtension | ( | ) |
Test the extension
References files\getExtension().
testGetMimeType | ( | ) |
Test the mime type with two well know mimetype Normally if a file type is unknow it must have a application/octet-stream mimetype javascript files might have an application/x-javascript mimetype regarding W3C spec. See http://en.wikipedia.org/wiki/Internet_media_type for all mimetypes
References files\getMimeType().
testMimeTypes | ( | ) |
There's a lot of mimetypes. Only test if mimetypes array is not empty
References files\mimeTypes().
testRegisterMimeType | ( | ) |
Try to register a new mimetype: test/test which don't exists
References files\mimeTypes().
testFileIsDeletable | ( | ) |
Test if a file is deletable. Under windows every file is deletable TODO: Do it under an Unix/Unix-like system
References files\isDeletable(), and tests\unit\TEST_DIRECTORY.
testDirIsDeletable | ( | ) |
Test if a directory is deletable TODO: Do it under Unix/Unix-like system
References files\isDeletable(), and tests\unit\TEST_DIRECTORY.
testDeltree | ( | ) |
Create a directories structure and delete it
References files\deltree(), and tests\unit\TEST_DIRECTORY.
testTouch | ( | ) |
There's a know bug on windows system with filemtime, so this test might fail within this system
References tests\unit\TEST_DIRECTORY.
testMakeDir | ( | ) |
Make a single directory
References files\makeDir(), and tests\unit\TEST_DIRECTORY.
testMakeDirWithParent | ( | ) |
Make a directory structure
References tests\unit\TEST_DIRECTORY.
testMakeDirImpossible | ( | ) |
Try to create an forbidden directory Under windows try to create a reserved directory Under Unix/Unix-like sytem try to create a directory at root dir
testInheritChmod | ( | ) |
References files\$dir_mode, and tests\unit\TEST_DIRECTORY.
testPutContent | ( | ) |
References tests\unit\TEST_DIRECTORY.
testPutContentException | ( | ) |
References tests\unit\TEST_DIRECTORY.
testSize | ( | ) |
References files\size().
testStr2Bytes | ( | ) |
References files\str2bytes().
testUploadStatus | ( | ) |
Test uploadStatus
This must fail until files::uploadStatus don't handle UPLOAD_ERR_EXTENSION
References files\uploadStatus().
testGetDirList | ( | ) |
References tests\unit\TEST_DIRECTORY.
testTidyFilename | ( | ) |
References files\tidyFileName().