PHP Class N98\Util\FilesystemTest

Author: Aydin Hassan ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: netz98/n98-magerun

Protected Properties

Property Type Description
$fileSystem Filesystem

Public Methods

Method Description
convertedBytesProvider ( ) : array
setUp ( )
testConvertBytesToHumanReadable ( integer $bytes, integer $decimalPlaces, string $expected )
testFalseIsReturnedIfDirectoryNotExist ( )
testFalseIsReturnedIfDirectoryNotReadable ( )
testParentIsNotRemovedIfEmptyIsTrue ( )
testRecursiveCopy ( )
testRecursiveCopyWithBlacklist ( )
testRecursiveDirectoryRemoveUnLinksSymLinks ( )
testRecursiveRemove ( )
testRecursiveRemoveWithTrailingSlash ( )

Method Details

convertedBytesProvider() public static method

public static convertedBytesProvider ( ) : array
return array

setUp() public method

public setUp ( )

testConvertBytesToHumanReadable() public method

public testConvertBytesToHumanReadable ( integer $bytes, integer $decimalPlaces, string $expected )
$bytes integer
$decimalPlaces integer
$expected string

testFalseIsReturnedIfDirectoryNotExist() public method

testFalseIsReturnedIfDirectoryNotReadable() public method

testParentIsNotRemovedIfEmptyIsTrue() public method

testRecursiveCopy() public method

public testRecursiveCopy ( )

testRecursiveCopyWithBlacklist() public method

testRecursiveRemove() public method

public testRecursiveRemove ( )

testRecursiveRemoveWithTrailingSlash() public method

Property Details

$fileSystem protected property

protected Filesystem $fileSystem
return Filesystem