Wait, someone built ANOTHER dinosaur park with ZERO tests!?!? I've seen this movie before and it's up to us: to add a rich set of tests before the dinos come for us...
But seriously: testing is great. It's not only a tool for preventing bugs, it's also a development philosophy that can help you write code that's more focused on what you actually want to build.
In this tutorial, we'll get you to super-hero status of unit testing, including:
Basic unit testing
Test-Driven-Development: how to do it, when to do it!
Using data providers to run tests over and over again with different input
Mocking and test doubles! Creating mocks in PHPUnit
The PHPUnit executable and configuration
Testing for exceptions
What about "integration" and "functional" testing? Stay tuned for the next tutorials in this series!
Формат: видео-уроки с английскими субтитрами и текст урока на английском языке в формате PDF.