public function vfsStreamWrapperFileTimesTestCase::removeFileChangesAttributeAndModificationTimeOfContainingDirectory in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTimesTestCase.php \org\bovigo\vfs\vfsStreamWrapperFileTimesTestCase::removeFileChangesAttributeAndModificationTimeOfContainingDirectory()
@test @group issue_7
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperFileTimesTestCase.php, line 227
Class
Namespace
org\bovigo\vfsCode
public function removeFileChangesAttributeAndModificationTimeOfContainingDirectory() {
$dir = vfsStream::newDirectory('bar')
->at(vfsStreamWrapper::getRoot());
$file = vfsStream::newFile('baz.txt')
->at($dir)
->lastModified(100)
->lastAccessed(100)
->lastAttributeModified(100);
$dir
->lastModified(100)
->lastAccessed(100)
->lastAttributeModified(100);
unlink($this->bazUrl);
$this
->assertLessThanOrEqual(time(), filemtime($this->barUrl));
$this
->assertLessThanOrEqual(time(), filectime($this->barUrl));
$this
->assertEquals(100, fileatime($this->barUrl));
$this
->assertFileTimesEqualStreamTimes($this->barUrl, $dir);
}