Neos\Flow\Tests\Unit\Monitor\ChangeDetectionStrategy\ModificationTimeStrategyTest::getFileStatusReturnsStatusUnchangedIfFileExistedAndTheModificationTimeDidNotChange PHP Метод

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

    public function getFileStatusReturnsStatusUnchangedIfFileExistedAndTheModificationTimeDidNotChange()
    {
        $fileUrl = vfsStream::url('testDirectory') . '/test.txt';
        file_put_contents($fileUrl, 'test data');
        $this->strategy->getFileStatus($fileUrl);
        clearstatcache();
        $status = $this->strategy->getFileStatus($fileUrl);
        $this->assertSame(\Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface::STATUS_UNCHANGED, $status);
    }