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

Summary

In this chapter, we came to appreciate the breadth and the quality of Codeception.

We've seen the three types of tests, namely unit, functional, and acceptance, which we'll be using throughout the rest of the book. We've also touched some additional features provided by the tool and by the Yii 2 Codeception module. We've learned how to interact with it, generate tests, and deal with debugging and keeping the test databases in sync with the database of the main application.

In the next chapter, we're going to start refactoring our User class, adding our tests first and progressing through all the most important PHPUnit features.

Tip

Downloading the example code

You can download the example code files from your account at http://www.packtpub.com ...

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