Symfony\Component\HttpFoundation\Tests\ResponseTest::testSetLastModified PHP Method

testSetLastModified() public method

public testSetLastModified ( )
    public function testSetLastModified()
    {
        $response = new Response();
        $response->setLastModified($this->createDateTimeNow());
        $this->assertNotNull($response->getLastModified());

        $response->setLastModified(null);
        $this->assertNull($response->getLastModified());
    }
ResponseTest