PHP Trait Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiGetExtensionPartial

Show file Open project: kraken-php/framework

Public Methods

Method Description
createFilesystem ( ) : Kraken\Filesystem\FilesystemInterface
getFullPath ( string $path, null $replace = null, string $with = '' ) : string
getPath ( string $path, null $replace = null, string $with = '' ) : string
getPathData ( string $path = '', string $typeFilter = '', boolean $recursive = false, string $filePattern = '' ) : array
getPrefix ( ) : string
getPrefixed ( string $path, null $replace = null, string $with = '' ) : string
getTest ( ) : TModule
testApiGetExtension_ReturnsEmptyString_WhenNodeDoesNotExist ( )
testApiGetExtension_ReturnsExtension_WhenNodeIsDirectory ( )
testApiGetExtension_ReturnsExtension_WhenNodeIsFile ( )

Method Details

createFilesystem() abstract public method

abstract public createFilesystem ( ) : Kraken\Filesystem\FilesystemInterface
return Kraken\Filesystem\FilesystemInterface

getFullPath() abstract public method

abstract public getFullPath ( string $path, null $replace = null, string $with = '' ) : string
$path string
$replace null
$with string
return string

getPath() abstract public method

abstract public getPath ( string $path, null $replace = null, string $with = '' ) : string
$path string
$replace null
$with string
return string

getPathData() abstract public method

abstract public getPathData ( string $path = '', string $typeFilter = '', boolean $recursive = false, string $filePattern = '' ) : array
$path string
$typeFilter string
$recursive boolean
$filePattern string
return array

getPrefix() abstract public method

abstract public getPrefix ( ) : string
return string

getPrefixed() abstract public method

abstract public getPrefixed ( string $path, null $replace = null, string $with = '' ) : string
$path string
$replace null
$with string
return string

getTest() abstract public method

See also: TestCase::getTest
abstract public getTest ( ) : TModule
return Kraken\Test\TModule

testApiGetExtension_ReturnsEmptyString_WhenNodeDoesNotExist() public method

testApiGetExtension_ReturnsExtension_WhenNodeIsDirectory() public method

testApiGetExtension_ReturnsExtension_WhenNodeIsFile() public method