The Myth of Untestable Code

Sebastian BergmannSebastian Heuer | FrOSCon |

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.

3 / 100
Download PDF

About the presenters

Sebastian Bergmann

Sebastian Bergmann is the author of PHPUnit and sets the industry standard of quality assurance.

Sebastian Heuer

Sebastian Heuer is CTO at Kartenmacherei and engages in various open source projects.