You are here

public function vfsStreamWrapperTestCase::filesize 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::filesize()

assure that filesize is returned correct

@test

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function filesize() {
  $this
    ->assertEquals(0, filesize($this->fooURL));
  $this
    ->assertEquals(0, filesize($this->fooURL . '/.'));
  $this
    ->assertEquals(0, filesize($this->barURL));
  $this
    ->assertEquals(0, filesize($this->barURL . '/.'));
  $this
    ->assertEquals(4, filesize($this->baz2URL));
  $this
    ->assertEquals(5, filesize($this->baz1URL));
}