コード例 #1
0
ファイル: ReadTest.php プロジェクト: pradeep-wagento/magento2
 public function testSeek()
 {
     $offset = 5;
     $whence = SEEK_SET;
     $result = 'content';
     $this->driver->expects($this->once())->method('fileSeek')->with($this->resource, $offset, $whence)->will($this->returnValue($result));
     $this->assertEquals($result, $this->file->seek($offset, $whence));
 }