O'Reilly logo

Learn CakePHP: With Unit Testing, Second Edition by Rādhārādhya Dāsa

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

© Sándor Gömöri 2016

Rādhārādhya Dāsa, Learn CakePHP, 10.1007/978-1-4842-1212-7_2

2. What Is Unit Testing?

Rādhārādhya Dāsa

(1)Somogyvamos, Hungary

A337704_2_En_2_Figa_HTML.jpg

Give me your hand, baby

Unit testing allows you to test your software in isolation. Normally, unit tests are small, fast, and test just a short piece of code—a unit—such as a function. A unit test is code designed to test other code.

It helps to keep the code short, easy to understand, and easy to read. It helps, too, to write more maintainable code. As a result, this helps to create software with fewer bugs. Unit tests automatize the testing process.

Unit tests alone will not guarantee perfect, bug-free ...

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