minor #22324 [HttpFoundation] Fix transient tests (nicolas-grekas)
minor #22324 [HttpFoundation] Fix transient tests (nicolas-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[HttpFoundation] Fix transient tests

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

We need to call `time()` when creating `DateTime` objects so that the clock-mock system can work.
This fixes some newly introduced transient tests.
ping @mpdude FYI

Commits
-------

9f7a6bb5e5 [HttpFoundation] Fix transient tests

localheinz/symfony,okdana/symfony,okdana/symfony,fabpot/symfony,phramz/symfony,shieldo/symfony,ragboyjr/symfony,gonzalovilaseca/symfony,lepiaf/symfony,josephdpurcell/symfony,pyrech/symfony,Amo/symfony,sstok/symfony,sroze/symfony,docteurklein/symfony,sgehrig/symfony,lyrixx/symfony,Deamon/symfony,teohhanhui/symfony,jderusse/symfony,Nyholm/symfony,Deamon/symfony,docteurklein/symfony,gencer/symfony,Tobion/symfony,Triiistan/symfony,hhamon/symfony,yceruto/symfony,nicolas-grekas/symfony,damienalexandre/symfony,Engerim/symfony,pamil/symfony,Pierstoval/symfony,hason/symfony,josephdpurcell/symfony,damienalexandre/symfony,jean-gui/symfony,lepiaf/symfony,jean-gui/symfony,dmaicher/symfony,jvasseur/symfony,weaverryan/symfony,curry684/symfony,zorn-v/symfony,frankdejonge/symfony,lstrojny/symfony,mnapoli/symfony,smatyas/symfony,gimler/symfony,sroze/symfony,symfony/symfony,smatyas/symfony,nasimnabavi/symfony,stof/symfony,Triiistan/symfony,frankdejonge/symfony,symfony/symfony,mnapoli/symfony,voronkovich/symfony,Aliance/symfony,pyrech/symfony,apetitpa/symfony,c960657/symfony,WhiteEagle88/symfony,symfony/symfony,c960657/symfony,pierredup/symfony,romaricdrigon/symfony,sroze/symfony,Simperfit/symfony,kbond/symfony,Strate/symfony,codeclimate-testing/symfony,pierredup/symfony,andrerom/symfony,mpdude/symfony,nicolas-grekas/symfony,jvasseur/symfony,OndraM/symfony,lepiaf/symfony,Slamdunk/symfony,mihai-stancu/symfony,OndraM/symfony,OskarStark/symfony,dunglas/symfony,okdana/symfony,Taluu/symfony,mihai-stancu/symfony,romaricdrigon/symfony,sroze/symfony,weaverryan/symfony,andreia/symfony,curry684/symfony,Amo/symfony,Einenlum/symfony,Koc/symfony,andreia/symfony,bendavies/symfony,localheinz/symfony,garak/symfony,ajgarlag/symfony,mihai-stancu/symfony,mvhirsch/symfony,MatTheCat/symfony,neemzy/symfony,dunglas/symfony,Pierstoval/symfony,tgalopin/symfony,lyrixx/symfony,Slamdunk/symfony,nasimnabavi/symfony,backbone87/symfony,Triiistan/symfony,michaelperrin/symfony,lyrixx/symfony,ragboyjr/symfony,bendavies/symfony,nasimnabavi/symfony,gnat42/symfony,OskarStark/symfony,jzawadzki/symfony,DavidGarciaCat/symfony,curry684/symfony,mweimerskirch/symfony,fabpot/symfony,pamil/symfony,MatTheCat/symfony,jderusse/symfony,shieldo/symfony,sgehrig/symfony,jvasseur/symfony,c960657/symfony,josephdpurcell/symfony,zerkms/symfony,yceruto/symfony,Amo/symfony,e-moe/symfony,e-moe/symfony,michaelperrin/symfony,docteurklein/symfony,bendavies/symfony,alekitto/symfony,mpdude/symfony,ajgarlag/symfony,pierredup/symfony,pamil/symfony,derrabus/symfony,e-moe/symfony,1ed/symfony,jderusse/symfony,dunglas/symfony,HeahDude/symfony,hhamon/symfony,joelwurtz/symfony,vincentaubert/symfony,csarrazi/symfony,SaschaDens/symfony,neemzy/symfony,zerkms/symfony,HeahDude/symfony,neemzy/symfony,paradajozsef/symfony,SaschaDens/symfony,joelwurtz/symfony,smatyas/symfony,localheinz/symfony,damienalexandre/symfony,xabbuh/symfony,smatyas/symfony,1ed/symfony,vincentaubert/symfony,tgalopin/symfony,romaricdrigon/symfony,zcodes/symfony,e-moe/symfony,Deamon/symfony,gonzalovilaseca/symfony,maidmaid/symfony,gimler/symfony,Slamdunk/symfony,Pierstoval/symfony,voronkovich/symfony,oleg-andreyev/symfony,jderusse/symfony,Taluu/symfony,stof/symfony,Simperfit/symfony,sstok/symfony,Triiistan/symfony,jakzal/symfony,phramz/symfony,ogizanagi/symfony,Deamon/symfony,Aliance/symfony,paradajozsef/symfony,codeclimate-testing/symfony,hhamon/symfony,dmaicher/symfony,nicolas-grekas/symfony,chalasr/symfony,mpdude/symfony,bendavies/symfony,tgalopin/symfony,ajgarlag/symfony,iltar/symfony,Amo/symfony,oleg-andreyev/symfony,phramz/symfony,deguif/symfony,ro0NL/symfony,Simperfit/symfony,zerkms/symfony,tucksaun/symfony,fabpot/symfony,zorn-v/symfony,vincentaubert/symfony,alekitto/symfony,frankdejonge/symfony,paradajozsef/symfony,gnat42/symfony,voronkovich/symfony,lstrojny/symfony,gimler/symfony,derrabus/symfony,lstrojny/symfony,Nyholm/symfony,apetitpa/symfony,gonzalovilaseca/symfony,joelwurtz/symfony,sstok/symfony,apetitpa/symfony,gimler/symfony,ogizanagi/symfony,OskarStark/symfony,csarrazi/symfony,mihai-stancu/symfony,Tobion/symfony,teohhanhui/symfony,maidmaid/symfony,arjenm/symfony,jean-gui/symfony,tucksaun/symfony,tucksaun/symfony,aeoris/symfony,Aliance/symfony,yceruto/symfony,symfony/symfony,Strate/symfony,arjenm/symfony,docteurklein/symfony,chalasr/symfony,Engerim/symfony,mnapoli/symfony,ragboyjr/symfony,Tobion/symfony,joelwurtz/symfony,michaelperrin/symfony,backbone87/symfony,mvhirsch/symfony,deguif/symfony,nasimnabavi/symfony,Pierstoval/symfony,apetitpa/symfony,docteurklein/symfony,sgehrig/symfony,iltar/symfony,gnat42/symfony,voronkovich/symfony,ajgarlag/symfony,dmaicher/symfony,OndraM/symfony,andrerom/symfony,michaelperrin/symfony,pierredup/symfony,mweimerskirch/symfony,mnapoli/symfony,garak/symfony,Koc/symfony,hacfi/symfony,jakzal/symfony,Einenlum/symfony,alekitto/symfony,OndraM/symfony,arjenm/symfony,derrabus/symfony,1ed/symfony,Nyholm/symfony,weaverryan/symfony,chalasr/symfony,Amo/symfony,Koc/symfony,codeclimate-testing/symfony,curry684/symfony,deguif/symfony,jakzal/symfony,SaschaDens/symfony,zcodes/symfony,Nyholm/symfony,iltar/symfony,Strate/symfony,mpdude/symfony,stof/symfony,mweimerskirch/symfony,1ed/symfony,OskarStark/symfony,ogizanagi/symfony,garak/symfony,Engerim/symfony,HeahDude/symfony,gencer/symfony,andreia/symfony,MatTheCat/symfony,sstok/symfony,garak/symfony,zerkms/symfony,jzawadzki/symfony,tucksaun/symfony,tgalopin/symfony,frankdejonge/symfony,xabbuh/symfony,DavidGarciaCat/symfony,xabbuh/symfony,mvhirsch/symfony,yceruto/symfony,pyrech/symfony,Deamon/symfony,csarrazi/symfony,MatTheCat/symfony,andreia/symfony,fabpot/symfony,maidmaid/symfony,WhiteEagle88/symfony,mweimerskirch/symfony,SaschaDens/symfony,sstok/symfony,andrerom/symfony,backbone87/symfony,Einenlum/symfony,Taluu/symfony,hacfi/symfony,stof/symfony,paradajozsef/symfony,deguif/symfony,gnat42/symfony,romaricdrigon/symfony,DavidGarciaCat/symfony,WhiteEagle88/symfony,jakzal/symfony,jean-gui/symfony,gencer/symfony,zorn-v/symfony,Taluu/symfony,OndraM/symfony,ro0NL/symfony,maidmaid/symfony,d-ph/symfony,sgehrig/symfony,nicolas-grekas/symfony,d-ph/symfony,teohhanhui/symfony,gonzalovilaseca/symfony,chalasr/symfony,aeoris/symfony,hason/symfony,Simperfit/symfony,shieldo/symfony,phramz/symfony,oleg-andreyev/symfony,arjenm/symfony,mvhirsch/symfony,jvasseur/symfony,xabbuh/symfony,pamil/symfony,Simperfit/symfony,lyrixx/symfony,hacfi/symfony,zorn-v/symfony,dmaicher/symfony,mnapoli/symfony,Triiistan/symfony,weaverryan/symfony,ro0NL/symfony,kbond/symfony,Koc/symfony,vincentaubert/symfony,ro0NL/symfony,mweimerskirch/symfony,derrabus/symfony,teohhanhui/symfony,ogizanagi/symfony,hhamon/symfony,smatyas/symfony,andrerom/symfony,d-ph/symfony,Einenlum/symfony,pyrech/symfony,aeoris/symfony,ragboyjr/symfony,damienalexandre/symfony,alekitto/symfony,oleg-andreyev/symfony,hason/symfony,d-ph/symfony,Tobion/symfony,mvhirsch/symfony,shieldo/symfony,iltar/symfony,jzawadzki/symfony,zcodes/symfony,HeahDude/symfony,Slamdunk/symfony,mihai-stancu/symfony,SaschaDens/symfony,c960657/symfony,localheinz/symfony,kbond/symfony,kbond/symfony,codeclimate-testing/symfony,zcodes/symfony