예제 #1
0
 public function testMoveFile()
 {
     $storage = new FileStorage('somewhere');
     self::$functions->expects($this->at(0))->method('is_dir')->with($this->equalTo('somewhere'))->will($this->returnValue(true));
     self::$functions->expects($this->at(1))->method('rename')->with($this->equalTo('src_file'), $this->equalTo('somewhere' . DIRECTORY_SEPARATOR . 'mykey'))->will($this->returnValue(true));
     $this->assertTrue($storage->moveFile('src_file', 'mykey'));
 }