org\bovigo\vfs\vfsStreamWrapperFileTimesTestCase::openFileChangesAttributeTimeOnly PHP Метод

openFileChangesAttributeTimeOnly() публичный Метод

    public function openFileChangesAttributeTimeOnly()
    {
        $file = vfsStream::newFile('foo.txt')->withContent('test')->at(vfsStreamWrapper::getRoot())->lastModified(100)->lastAccessed(100)->lastAttributeModified(100);
        fclose(fopen($this->fooUrl, 'rb'));
        $this->assertGreaterThan(time() - 2, fileatime($this->fooUrl));
        $this->assertLessThanOrEqual(time(), fileatime($this->fooUrl));
        $this->assertLessThanOrEqual(100, filemtime($this->fooUrl));
        $this->assertEquals(100, filectime($this->fooUrl));
        $this->assertFileTimesEqualStreamTimes($this->fooUrl, $file);
    }