You are here

public function vfsStreamWrapperTestCase::statAndFstatReturnSameResult in Zircon Profile 8.0

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

stat() and fstat() should return the same result

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php, line 491

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function statAndFstatReturnSameResult() {
  $fp = fopen($this->baz2URL, 'r');
  $this
    ->assertEquals(stat($this->baz2URL), fstat($fp));
  fclose($fp);
}