You are here

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

@test @group issue_11 @requires PHP 5.4.0

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function touchWithModifiedTimeChangesAccessAndModifiedTime() {
  $this
    ->assertTrue(touch($this->baz1URL, 303));
  $this
    ->assertEquals(303, $this->baz1
    ->filemtime());
  $this
    ->assertEquals(303, $this->baz1
    ->fileatime());
}