O'Reilly logo

Learning Yii Testing by Matteo Pescarin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Improving our code with the aid of additional tools

In addition to code coverage and test reports, we have a range of additional tools, which we can use for improving the quality of our code.

The two tools that we're going to talk about are the check style and the cyclomatic complexity through the C.R.A.P. index.

We are going to add more examples and tools to these in Chapter 9, Eliminating Stress with the Help of Automation, as each command would require too much knowledge from the developer's side, and it is something that can be automated and triggered by the flick of a switch.

PHP Checkstyle (PHPCS) is a great tool, albeit it is rather complex at first . This will help us in maintaining a style of code that is uniform for all developers. You ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required