Talk in English - US at Longhorn PHP 2025
Track Name:
Hill Country C
Short URL: https://joind.in/talk/86403
(QR-Code (opens in new window))
Testing your database can lead to slow, complex tests that are hard to write. Hard to write tests, usually don't get written. There can be a better way of testing this type of code.
Using a PHPUnit Extension and framework-agnostic database tools, we can improve tests that interact with the database. Easily configure connection details, ensure a clean database before each test, programmatically load datasets, and make assertions on database state.
Comments
Please login to leave a comment
I share Charles enthusiasm about creating open-source packages to help out other DEV's. Especially when bumping into all the challenges along the way and trying to resolve those.
Great talk!
I never would have guessed that this was Charles' first conference talk! The talk itself focused heavily on Charles' libraries and tooling, but could be expanded to also cover database testing in a broader sense: when (and when not!) to use it, advantages and disadvantages of certain strategies, performance considerations, etc.
Overall the talk had a lot of great content, and I'm definitely excited to see how it evolves!
This looks like a great tool, and I'm eager to see how it expands and grows over time. I need to see how to extend it myself for my own projects.
Insightful talk, thanks!