Talk in English - UK at Forum PHP 2022
Short URL: https://joind.in/talk/dc444
(QR-Code (opens in new window))
Creating current time information in code is rather easy by calling time() or new DateTimeImmutable() directly when the information is necessary. But that then makes the code a nightmare to test. In this session we will see how PSR-20 allows us to change that by still making it easy to generate current time information but also allowing one to test the code. And we will get some background info about why it was designed in such a way, what obstacles are in the way and how to still be able to use the feature.
Comments
Comments are closed.
So cool and interesting
Very interesting