move() public method

Move (rename) a file or directory.
public move ( string $source, string $destination )
$source string
$destination string
コード例 #1
0
 /**
  *
  */
 public function testApiMove_ThrowsException_WhenModelMoveThrowsException()
 {
     $this->setExpectedException(WriteException::class);
     $before = 'a';
     $after = 'b';
     $this->expect('rename', [$before, $after])->willThrow(new Exception());
     $this->fs->move($before, $after);
 }