[Filesystem] Written missing tests.
This commit is contained in:
parent
1998f3f5ec
commit
78d6f3f0e0
@ -379,6 +379,17 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->filesystem->rename($file, $newPath);
|
$this->filesystem->rename($file, $newPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException \RuntimeException
|
||||||
|
*/
|
||||||
|
public function testRenameThrowsExceptionOnError()
|
||||||
|
{
|
||||||
|
$file = $this->workspace.DIRECTORY_SEPARATOR.uniqid();
|
||||||
|
$newPath = $this->workspace.DIRECTORY_SEPARATOR.'new_file';
|
||||||
|
|
||||||
|
$this->filesystem->rename($file, $newPath);
|
||||||
|
}
|
||||||
|
|
||||||
public function testSymlink()
|
public function testSymlink()
|
||||||
{
|
{
|
||||||
$this->markAsSkippeIfSymlinkIsMissing();
|
$this->markAsSkippeIfSymlinkIsMissing();
|
||||||
|
Reference in New Issue
Block a user