예제 #1
0
 /**
  * @expectedException \Symfony\Component\Filesystem\Exception\IOException
  */
 public function testRenameThrowsExceptionOnError()
 {
     $file = $this->workspace . DIRECTORY_SEPARATOR . uniqid('fs_test_', true);
     $newPath = $this->workspace . DIRECTORY_SEPARATOR . 'new_file';
     $this->filesystem->rename($file, $newPath);
 }