protected function ResponseTest::createDateTimeOneHourAgo 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::createDateTimeOneHourAgo()
1 call to ResponseTest::createDateTimeOneHourAgo()
- ResponseTest::testGetDate in vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 859
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
protected function createDateTimeOneHourAgo() {
$date = new \DateTime();
return $date
->sub(new \DateInterval('PT1H'));
}