Fixtures In Unit Testing


In 1.1.x we have nice CDbFixtures but I was wondering if we could also have fylessytem fixtures in Yii2?

The idea being that you may need to test operations on files and would like to set a fixture up to handle this aspect prior/between tests.

Maybe this is a little too specific but it would definitely be nice to have the option of making your own fixtures if need be.

I might be missing something really obvious that already exists. If so let me know

A lot of people want to see codeception becoming Yii 2.0’s testing framework and it has good file testing support:

  • Yii 2.0 issue on Github

  • Codeception Filesystem module

+1 for Codeception