Our PHP TimeTraveler to address DateTime::modify() pitfallsEverybody knows the PHP native method DateTime::modify() The DateTime extension supports awesome modifiers like "2 days ago", "last day of this month", ... or basic ones like "+1 month". But the last one is actually tricky: it increments the month va...Aug 3, 2023 · 2 min readtech.assoconnect.com
Adminer meets Azure MySQL DatabaseI recently deployed a new instance of Azure Database for MySQL Flexible Server.And I found out it uses a different SSL certificate than the legacy Single Server. This obviously broke my current Adminer setup with the login-ssl.php plugin so I decided...Jul 18, 2023 · 1 min readtech.assoconnect.com
A Migration Tale: from our custom PHP framework to SymfonyWe decided to code our own PHP framework when founding AssoConnect many years ago. That was a great yet challenging way to learn how many critical parts of a framework work 🤓 But maintaining it was also too intense so we decided to migrate to the ...Mar 1, 2023 · 3 min readtech.assoconnect.com
Troubleshoot a Symfony ClockMock testThe Symfony ClockMock is an amazing yet tricky feature to mock date & time in your PHPUnit test suite. You followed the documentation and yet date and time don't get mocked in your tests? Let's review how it works and the common pitfalls we know of a...Mar 27, 2022 · 3 min readtech.assoconnect.com