Dotclear 2.25
Loading...
Searching...
No Matches
files Class Reference
Inheritance diagram for files:

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 ()
 

Member Function Documentation

◆ cleanTemp()

cleanTemp ( )
protected

References tests\unit\TEST_DIRECTORY.

Referenced by files\setUp(), and files\tearDown().

◆ setUp()

◆ tearDown()

tearDown ( )

References files\cleanTemp().

◆ testScanDir()

testScanDir ( )

Scan a directory. For that we use the /../fixtures/files which contains know files

References files\scandir(), and tests\unit\TEST_DIRECTORY.

◆ testExtension()

testExtension ( )

Test the extension

References files\getExtension().

◆ testGetMimeType()

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()

testMimeTypes ( )

There's a lot of mimetypes. Only test if mimetypes array is not empty

References files\mimeTypes().

◆ testRegisterMimeType()

testRegisterMimeType ( )

Try to register a new mimetype: test/test which don't exists

References files\mimeTypes().

◆ testFileIsDeletable()

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()

testDirIsDeletable ( )

Test if a directory is deletable TODO: Do it under Unix/Unix-like system

References files\isDeletable(), and tests\unit\TEST_DIRECTORY.

◆ testDeltree()

testDeltree ( )

Create a directories structure and delete it

References files\deltree(), and tests\unit\TEST_DIRECTORY.

◆ testTouch()

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()

testMakeDir ( )

Make a single directory

References files\makeDir(), and tests\unit\TEST_DIRECTORY.

◆ testMakeDirWithParent()

testMakeDirWithParent ( )

Make a directory structure

References tests\unit\TEST_DIRECTORY.

◆ testMakeDirImpossible()

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()

testInheritChmod ( )

◆ testPutContent()

testPutContent ( )

◆ testPutContentException()

testPutContentException ( )

◆ testSize()

testSize ( )

References files\size().

◆ testStr2Bytes()

testStr2Bytes ( )

References files\str2bytes().

◆ testUploadStatus()

testUploadStatus ( )

Test uploadStatus

This must fail until files::uploadStatus don't handle UPLOAD_ERR_EXTENSION

References files\uploadStatus().

◆ testGetDirList()

testGetDirList ( )

◆ testTidyFilename()

testTidyFilename ( )

References files\tidyFileName().


The documentation for this class was generated from the following file: