Talk in English - US at September Meetup - PHP Limburg
View Slides: https://speakerdeck.com/freekmurze/snapshot-testing-phplimburg
Short URL: https://joind.in/talk/5d2fe (QR-Code (opens in new window))
The basic idea of snapshot testing is that you compare the output of your code against a file that’s written on disk. That file is called a snapshot. If the output of your test matches up with the contents of that snapshot, it succeeds, otherwise, it fails. It’s a simple as that.
In this talk we’ll demo how you can add snapshot testing methods to PHPUnit and review a practical example on how to use them.