PHP Objects, Patterns and Practice (3rd edition)

(Barry) #1
CHAPTER 20 ■ CONTINUOUS INTEGRATION

Chapter 18 to illustrate PHPUnit. I’m going to name it userthing, because it's a thing, with a User object
in it.
First of all, here is a breakdown of my project directory. See Figure 20–1.


Figure 20–1. Part of a sample project to illustrate CI


As you can see, I’ve tidied up the structure a little, adding some package directories. Within the
code, I’ve supported the package structure with the use of namespaces.
Now that I have a project, I should add it to a version control system.


CI and Version Control


Version control is essential for CI. A CI system needs to acquire the most recent version of a project
without human intervention (at least once things have been set up).

Free download pdf