C H A P T E R  13

Refactoring, Unit Testing, and Continuous Integration

As developers, we aim to achieve a stable, high-quality code base. This reduces time spent on debugging and facilitates frequent releases. In this chapter, we will look at three techniques to improve the reliability of our code and make it easier and safer to modify. These techniques are refactoring, unit testing, and continuous integration.

Refactoring is a way to modify code structure with the purpose of improving its quality. When we refactor, we are not trying to add or modify functionality. Refactoring is a necessary and natural part of programming. Despite our best intentions to not modify functionality when refactoring, it is important to realize that it is quite ...

Get Pro PHP Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.