phpDocumentor GalleryCore
PHPUnit
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Class: FileSystemTestPlatformForRename

Source Location: /modules/core/test/phpunit/FileSystemTest.class

Class FileSystemTestPlatformForRename

Class Overview

Mock platform for the rename method

Implements all methods used by FileSystemEntity::move()

Located in /modules/core/test/phpunit/FileSystemTest.class [line 497]

GalleryPlatform
   |
   --FileSystemTestPlatformForRename

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GalleryPlatform

GalleryPlatform::$_blacklistedFileExtensions

Inherited From GalleryPlatform

GalleryPlatform::atomicWrite()
Perform an atomic write to a file. This guarantees that the data written is not corrupted (but it does not prevent another process from immediately replacing the file with its own version).
GalleryPlatform::chdir()
chdir -- change working directory.
GalleryPlatform::chmod()
Set filesystem permissions; mode defaults to system preference for file/dir permissions.
GalleryPlatform::clearstatcache()
Clear the stat cache.
GalleryPlatform::closedir()
Close a directory resource.
GalleryPlatform::copy()
Copy a file.
GalleryPlatform::exec()
Execute a command and record the results and status.
GalleryPlatform::fclose()
Closes an open file pointer.
GalleryPlatform::feof()
Tests for end-of-file on a file pointer.
GalleryPlatform::fflush()
Flush an open file pointer.
GalleryPlatform::fgets()
Gets line from file pointer.
GalleryPlatform::file()
Return a file as an array.
GalleryPlatform::filesize()
How large is the given file?
GalleryPlatform::file_exists()
Does the given file exist?
GalleryPlatform::file_get_contents()
Reads the entire contents of the specified file into a string.
GalleryPlatform::file_put_contents()
Writes specified data to file. Uses PHP's file_put_contents() function if it is available.
GalleryPlatform::flock()
flock -- Portable advisory file locking.
GalleryPlatform::fopen()
Open a file or URL.
GalleryPlatform::fread()
Reads data from an open file handle.
GalleryPlatform::fseek()
Seeks on a file pointer.
GalleryPlatform::fsockopen()
Initiates a socket connection to the resource specified by target.
GalleryPlatform::ftruncate()
Truncates a file to a given length.
GalleryPlatform::fwrite()
Write the contents of string to the file stream pointed to by handle.
GalleryPlatform::getcwd()
getcwd -- gets the current working directory.
GalleryPlatform::getDirectorySeparator()
Return the filesystem specific directory separator.
GalleryPlatform::getimagesize()
Get size information about an image.
GalleryPlatform::getLegalPathCharacters()
Legal characters on all systems: A-Z a-z 0-9 # _ . -
GalleryPlatform::getLineEnding()
Return the string of characters which represent the line ending on this platform.
GalleryPlatform::glob()
The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function, which is similar to the rules used by common shells. No tilde expansion or parameter substitution is done.
GalleryPlatform::isLegalPathComponent()
Return true if the path component specified is composed of legal characters.
GalleryPlatform::isRestrictedByOpenBaseDir()
Return true if the path provided is not allowed by the current open_basedir configuration.
GalleryPlatform::isSymlinkSupported()
Return a boolean specifying whether or not this platform can perform a symbolic link (symlink) command.
GalleryPlatform::is_dir()
Is the given path a directory?
GalleryPlatform::is_executable()
Is the given path an executable file?
GalleryPlatform::is_file()
Is the given path a normal file?
GalleryPlatform::is_link()
Is the given path a symbolic link?
GalleryPlatform::is_readable()
Is the given path a readable file?
GalleryPlatform::is_uploaded_file()
Is the given path an uploaded file?
GalleryPlatform::is_writeable()
Is the given path a writeable file?
GalleryPlatform::legalizePathComponent()
Remove any illegal characters from the path component.
GalleryPlatform::mail()
mail -- Send an email. Lines in the headers and body should be terminated with \r\n in accordance with RFC2821.
GalleryPlatform::mkdir()
Create a new directory.
GalleryPlatform::move_uploaded_file()
Move an uploaded file to a new location and return the new location. If the second filename is not provided, a new file is created in the Gallery temporary directory.
GalleryPlatform::opendir()
Open a file or URL.
GalleryPlatform::readdir()
Return the next file resource from a directory.
GalleryPlatform::readfile()
Output a file.
GalleryPlatform::realpath()
Expand all symbolic links and resolve references to '/./', '/../' and extra '/' characters in
GalleryPlatform::recursiveChmod()
Recursively set filesystem permissions. Modes default to system preferences for file/dir permissions.
GalleryPlatform::recursiveFixDirPermissions()
Fixes the directory permissions (as eg. unzip creates them with file permissions because of the umask).
GalleryPlatform::recursiveRmdir()
Delete a directory, and all its contents.
GalleryPlatform::rename()
Rename a file/dir.
GalleryPlatform::resetPlatform()
Clear any cached saved state in this platform.
GalleryPlatform::rmdir()
Delete a directory.
GalleryPlatform::splitPath()
Split path into component elements. Include root path for absolute paths.
GalleryPlatform::stat()
Get information about a file.
GalleryPlatform::strftime()
Format a local time/date according to locale settings. Converts any text output from strftime tokens to UTF-8.
GalleryPlatform::symlink()
Symlink a file.
GalleryPlatform::tempnam()
Create a file with a unique file name.
GalleryPlatform::touch()
touch -- Sets access and modification time of file.
GalleryPlatform::unlink()
Delete a file.
GalleryPlatform::_isRestrictedByOpenBaseDir()
Check if path is allowed by open_basedir, given platform path separator & case sensitivity.
GalleryPlatform::_loadPermissionPreferences()
Load preferences for file/dir permissions and calculate umask.
GalleryPlatform::_recursiveChmod()
Helper for recursiveChmod.

[ Top ]
Method Summary
FileSystemTestPlatformForRename   FileSystemTestPlatformForRename()  
void   getDirectorySeparator()  
void   rename()   Rename a file/dir

[ Top ]
Methods
Constructor FileSystemTestPlatformForRename  [line 498]

  FileSystemTestPlatformForRename FileSystemTestPlatformForRename( $separator  )

Parameters:
   $separator: 


[ Top ]
getDirectorySeparator  [line 502]

  void getDirectorySeparator( )



Redefinition of:
GalleryPlatform::getDirectorySeparator()
Return the filesystem specific directory separator.

[ Top ]
rename  [line 512]

  void rename( $oldname, $newname  )

Rename a file/dir

Override rename method for the testMoveRenamePaths It won't rename the item actually, just check if the paths contain no invalid slashs

Parameters:
   $oldname: 
   $newname: 


Redefinition of:
GalleryPlatform::rename()
Rename a file/dir.

[ Top ]

Documentation generated on Fri, 08 Oct 2010 04:52:21 -0700 by phpDocumentor 1.3.0RC6