You are here

public function vfsStreamWrapperLargeFileTestCase::canReadFromLargeFile in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperLargeFileTestCase.php \org\bovigo\vfs\vfsStreamWrapperLargeFileTestCase::canReadFromLargeFile()

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperLargeFileTestCase.php, line 54

Class

vfsStreamWrapperLargeFileTestCase
Test for large file mocks.

Namespace

org\bovigo\vfs

Code

public function canReadFromLargeFile() {
  $fp = fopen($this->largeFile
    ->url(), 'rb');
  $data = fread($fp, 15);
  fclose($fp);
  $this
    ->assertEquals(str_repeat(' ', 15), $data);
}