Pipe\Test\ServerTest::testServerReturnsLastModifiedHeader PHP Метод

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

    function testServerReturnsLastModifiedHeader()
    {
        // Modify the mtime of a file deep in the dependency graph
        $time = time();
        touch(__DIR__ . "/fixtures/directive_processor/module/ui/base.js", $time);
        $request = Request::create('application.js');
        $response = $this->server->dispatch($request);
        // Check if the Last Modified header
        $lastModified = $response->headers->get('Last-Modified');
        $this->assertEquals($time, strtotime($lastModified));
    }