1. Homepage
  2. Dates
  3. 2017
  4. October
  5. RomaniaPHP


  • Cluj-Napoca
  • -

The community-run conference is the first event dedicated 100% to PHP in Romania.

Event Website

Building Testable Applications

Even projects that started promising often turn into a maintenance nightmare on the long run. Code that looked "good enough" in the beginning turns out to be not flexible enough for changing requirements. Adaptations and enhancements start to turn into waves of regressions, and nobody really enjoys working on the code any more.

This workshop will teach you how to do better. Based on a real-life example, we will start with understanding the problem before we move on to writing clean and testable code along with comprehensive unit tests. We will cover Clean Code and SOLID principles as well as the basics of Domain-Driven Design. We will also explore the benefits of creating separate read and write models and look into Command/Query Responsibility Segregation (CQRS).

Every attendee should have a basic understanding of object-oriented PHP code. We will code live, but due to time constaints the attendees will not write code themselves.

Getting Started with PHPUnit

If you want to be sure that your software works correctly then you need to continuously test it. Automated tests save you from pressing F5 in the browser all the time as well as from using debug statements such as var_dump() in your code. They are also cheaper than manual tests and easier to implement than you may think. How do I test my code with as little effort as possible? How do I execute as few lines of code as possible to test what I am really interested in? And what does this have to do with clean code? Attendees of this session will learn why they should include PHPUnit into their set of development tools.