PHP Class Platformsh\Cli\Tests\FilesystemHelperTest

Inheritance: extends PHPUnit_Framework_TestCase, use trait HasTempDirTrait
Show file Open project: commerceguys/platform-cli

Protected Properties

Property Type Description
$filesystemHelper Platformsh\Cli\Helper\FilesystemHelper

Public Methods

Method Description
setUp ( )
testCopyAll ( ) Test FilesystemHelper::copyAll().
testGetHomeDirectory ( ) Test FilesystemHelper::getHomeDirectory().
testMakePathAbsolute ( ) Test FilesystemHelper::makePathAbsolute().
testRemoveDir ( ) Test FilesystemHelper::remove() on directories.
testSymlinkAll ( ) Test FilesystemHelper::symlinkAll().
testSymlinkDir ( ) Test FilesystemHelper::symlinkDir().
testTempDir ( ) Test our own self::tempDir().

Protected Methods

Method Description
tempDir ( boolean $fill = false ) : string Create a test directory with a unique name.

Method Details

setUp() public method

public setUp ( )

tempDir() protected method

Create a test directory with a unique name.
protected tempDir ( boolean $fill = false ) : string
$fill boolean Fill the directory with some files.
return string

testCopyAll() public method

Test FilesystemHelper::copyAll().
public testCopyAll ( )

testGetHomeDirectory() public method

Test FilesystemHelper::getHomeDirectory().

testMakePathAbsolute() public method

Test FilesystemHelper::makePathAbsolute().

testRemoveDir() public method

Test FilesystemHelper::remove() on directories.
public testRemoveDir ( )

testSymlinkAll() public method

Test FilesystemHelper::symlinkAll().
public testSymlinkAll ( )

testSymlinkDir() public method

Test FilesystemHelper::symlinkDir().
public testSymlinkDir ( )

testTempDir() public method

Test our own self::tempDir().
public testTempDir ( )

Property Details

$filesystemHelper protected property

protected FilesystemHelper,Platformsh\Cli\Helper $filesystemHelper
return Platformsh\Cli\Helper\FilesystemHelper