Content of the «Testing» section The Definitive Guide to Yii 2.0:
Articles section «Testing» The Definitive Guide to Yii 2.0:
Yii provides a fixture framework that allows you to define your fixtures precisely and use them easily both when running your tests with Codeception and independently. Fixtures are an important part of testing.
Functional test in Yii 2 verifies scenarios from a user's perspective. Functional tests are generally faster than acceptance tests and are providing detailed stack traces on failures.
Testing is an important part of software development. For example, when we write a class in PHP, we may debug it step by step or simply use echo or die statements to verify the implementation works according to our initial plan.