O'Reilly logo

Mastering Yii by Charles R. Portwood II

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

Chapter 10. Testing with Codeception

An important but often overlooked aspect of software development is testing our application to ensure that it performs as expected. There are three basic ways in which we can test our applications:

  • Unit testing
  • Functional testing
  • Acceptance testing

Unit testing enables us to test individual sections of code before coupling it with our application. Functional testing allows us to test the functional aspects of code within a simulated browser, and acceptance testing allows us to test our application within a real browser and verify that it does what we built it to do. With Yii2, we can use a tool called Codeception to create and execute unit, functional, and acceptance testing for our application. In this chapter, ...

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