You are here

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

@test @group issue_11 @requires PHP 5.4.0

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function touchChangesAccessAndModificationTimeForDirectory() {
  $this
    ->assertTrue(touch($this->fooURL, 303, 313));
  $this
    ->assertEquals(303, $this->foo
    ->filemtime());
  $this
    ->assertEquals(313, $this->foo
    ->fileatime());
}