You are here

public function vfsStreamWrapperTestCase::filemtime in Zircon Profile 8

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

assert that filemtime() delivers correct result

@test

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function filemtime() {
  $this
    ->assertEquals(100, filemtime($this->fooURL));
  $this
    ->assertEquals(100, filemtime($this->fooURL . '/.'));
  $this
    ->assertEquals(200, filemtime($this->barURL));
  $this
    ->assertEquals(200, filemtime($this->barURL . '/.'));
  $this
    ->assertEquals(300, filemtime($this->baz1URL));
  $this
    ->assertEquals(400, filemtime($this->baz2URL));
}