You are here

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

@test @group issue_11 @group issue_80 @requires PHP 5.4.0

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function touchChangesTimesToCurrentTimestampWhenNoTimesGiven() {
  $this
    ->assertTrue(touch($this->baz1URL));
  $this
    ->assertEquals(time(), $this->baz1
    ->filemtime(), '', 1);
  $this
    ->assertEquals(time(), $this->baz1
    ->fileatime(), '', 1);
}