yiisoft/yii — Issue #409: PHPUnit_Extensions_PhptTestCase integration
Author: tom--
Created: 2012-02-27 15:31:52+00:00
State: open

It's pretty straightforward to integrate PHPT tests into PHPUnit unit tests. And it's very useful. It allows things like `--POST_RAW--`. That allows, for example, things like [rigorous unit testing of file upload](http://qafoo.com/blog/013_testing_file_uploads_with_php.html).

PHPUnit supports using PHPT tests with `PHPUnit_Extensions_PhptTestCase`. I could not figure out how to make that work. I imagine this is probably just a matter of writing another simple Yii wrapper class but I wasn't up to the task :(

Almost all development systems have PHPT already so I think setup would be trivial once you've got PHPUnit working.

Please consider adding PHPT support to Yii's already excellent test framework by adding `PHPUnit_Extensions_PhptTestCase`.