示例#1
0
 /**
  * testCopyFileNodeToFileExistingCatchException
  */
 public function testCopyFileNodeToFileExistingCatchException()
 {
     $filesToCopy = $this->testCreateFileNodes();
     $file1 = $filesToCopy[0];
     try {
         $result = $this->_json->copyNodes(array($file1), array($file1), FALSE);
     } catch (Filemanager_Exception_NodeExists $fene) {
         $info = $fene->toArray();
         $this->assertEquals(1, count($info['existingnodesinfo']));
         return;
     }
     $this->fail('An expected exception has not been raised.');
 }