You are here

public function vfsStreamWrapperFileTestCase::file_get_contents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php \org\bovigo\vfs\vfsStreamWrapperFileTestCase::file_get_contents()

assert that file_get_contents() delivers correct file contents

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php, line 22

Class

vfsStreamWrapperFileTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function file_get_contents() {
  $this
    ->assertEquals('baz2', file_get_contents($this->baz2URL));
  $this
    ->assertEquals('baz 1', file_get_contents($this->baz1URL));
  $this
    ->assertFalse(@file_get_contents($this->barURL));
  $this
    ->assertFalse(@file_get_contents($this->fooURL));
}