public function ResponseTest::testSetLastModified in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/ResponseTest.php \Symfony\Component\HttpFoundation\Tests\ResponseTest::testSetLastModified()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 640
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testSetLastModified() {
$response = new Response();
$response
->setLastModified(new \DateTime());
$this
->assertNotNull($response
->getLastModified());
$response
->setLastModified(null);
$this
->assertNull($response
->getLastModified());
}