Talk in English - UK at ScotlandPHP 2017
View Slides: https://slidr.io/belanur/the-myth-of-untestable-code-scotlandphp-2017
Short URL: https://joind.in/talk/aba57 (QR-Code (opens in new window))
Contrary to popular belief, no code is untestable. Sure, writing unit tests for well-crafted code that follows the SOLID principles is easy. But what about legacy code residing in some god class with implicit dependencies and no separation of concerns? We will show you that it is possible to write tests for even the worst code by explaining the why, the what, the how, and the when of software testing while looking at real-world examples.