PHP Class VersionPress\Tests\Unit\RelativePathsTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: versionpress/versionpress

Public Methods

Method Description
pathProvider ( )
relativePathIsCountedCorrectly ( $from, $to, $expectedRelativePath )
specialPaths ( $from, $to, $expected )
specialPathsProvider ( )
uberDirname ( $path ) Used instead of dirname() because of testing Windows paths on Unix-like OS

Method Details

pathProvider() public method

public pathProvider ( )

relativePathIsCountedCorrectly() public method

public relativePathIsCountedCorrectly ( $from, $to, $expectedRelativePath )

specialPaths() public method

public specialPaths ( $from, $to, $expected )

specialPathsProvider() public method

uberDirname() public method

Used instead of dirname() because of testing Windows paths on Unix-like OS
public uberDirname ( $path )