Skip to content

Commit

Permalink
[Filesystem] Written missing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldesantis committed Apr 10, 2012
1 parent 096cc68 commit 44d5b8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tests/FilesystemTest.php
Expand Up @@ -379,6 +379,17 @@ public function testRenameThrowsExceptionIfTargetAlreadyExists()
$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();
Expand Down

0 comments on commit 44d5b8f

Please sign in to comment.