[Filesystem] Written missing tests.

This commit is contained in:
Alessandro Desantis 2012-04-10 10:15:30 +02:00
parent 1998f3f5ec
commit 78d6f3f0e0

View File

@ -379,6 +379,17 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$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()
{
$this->markAsSkippeIfSymlinkIsMissing();