Kraken\Filesystem\FilesystemInterface::move PHP 메소드

move() 공개 메소드

Move (rename) a file or directory.
public move ( string $source, string $destination )
$source string
$destination string
    public function move($source, $destination);

Usage Example

예제 #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);
 }