I\'m following along with the book \"Agile Web Application Development with Yii 1.1 and PHP5\" and I just started the part about unit testing in chapter 2.
We have a Phing script that is used by Hudson to build/test our PHP site. Some of our unit tests load the main function library; others use a mock to avoid having to do so (or to provide specific fak
I want to use setUpBeforeClass() to setup a db connection, and do some logging, but it is not being called before my tests execute (or at all, for that matter).
I\'m running test using behat, but this basically runs phpunits selenium driver, to do integration tests
I\'开发者_如何学编程m a beginner with PHPUnit. This is a sample test class that I\'ve created:
I have 2 directories: project1 and project2.When I run PHPUnit in project1/tests, it works fine.When I run it in project2/tests, it works fine, except does not produce any code coverage reports.The ph
I have a unit tests for Zend Framework controllers extending Zend_Test_PHPUnit_ControllerTestCase. The tests are dispatching an action, which forwards to another action, like this:
I have been using phpunit for a while, starting with 3.5.8, subsequently upgrading to 3.5.10 and now on 3.5.11
I made loging to my webiste i开发者_开发问答n ZF using openid (e.g. using google, myopenid, yahoo). It works good. But I don\'t know how to write a unit test for it.
I have been looking into how to add unit testing coverage to a large, existing codebase written in PHP. Many functions in both static and instantiable classes make a call to a library or instantiate a