You are here

protected function vfsStreamWrapperFileTimesTestCase::assertFileTimesEqualStreamTimes in Zircon Profile 8

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

helper assertion for the tests

Parameters

string $url url to check:

vfsStreamContent $content content to compare:

10 calls to vfsStreamWrapperFileTimesTestCase::assertFileTimesEqualStreamTimes()
vfsStreamWrapperFileTimesTestCase::createNewFileChangesAttributeAndModificationTimeOfContainingDirectory in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTimesTestCase.php
@test @group issue_7
vfsStreamWrapperFileTimesTestCase::createNewFileSetsAllTimesToCurrentTime in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTimesTestCase.php
@test @group issue_7
vfsStreamWrapperFileTimesTestCase::fileGetContentsChangesAttributeTimeOnly in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTimesTestCase.php
@test @group issue_7 @group issue_26
vfsStreamWrapperFileTimesTestCase::openFileChangesAttributeTimeOnly in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTimesTestCase.php
@test @group issue_7 @group issue_26
vfsStreamWrapperFileTimesTestCase::openFileWithTruncateChangesAttributeAndModificationTime in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTimesTestCase.php
@test @group issue_7 @group issue_26

... See full list

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTimesTestCase.php, line 57

Class

vfsStreamWrapperFileTimesTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

protected function assertFileTimesEqualStreamTimes($url, vfsStreamContent $content) {
  $this
    ->assertEquals(filemtime($url), $content
    ->filemtime());
  $this
    ->assertEquals(fileatime($url), $content
    ->fileatime());
  $this
    ->assertEquals(filectime($url), $content
    ->filectime());
}