I need to create an autoloader to my 开发者_如何转开发application. I don\'t want to depend on a file in the filesystem, so how do I mock a new call? Or how do you test an autoloader class?
I\'m interested in getting more dubugging information when I get an error. Now I\'m getting something like this:
Sorry for another \'phpunit doesn\'t work\' question. It used to work for years now. Today I reinstalled PEAR and phpunit for reasons not connected to this problem. Now when I run phpunit as I usually
I\'m doing some testing to my login form but I notice that If I dont send all the expected parameters, I get this error:
I\'m learning Yii and following ebook written by Jeffrey Winesett, the application is built upon TDD. So I ne开发者_如何转开发ed to install PHPUnit to write unit test, which leads me to posts help ins
I\'ve started from scratch a new application using TDD and PHPUnit. It is going to be a MVC application. I\'ve started my tests from the Model. That was fun and i didn\'t have too much problems.
When I create a new mock I need to call the expects method. What exactly it does? What about its arguments?
We\'re using PHPUnit to run both unit tests and functional tests that query some URLs via HTTP and check the output against some XPaths.
I have: PHP 5.3.8, PHPUnit 3.5.15, Netbeans 7.0.1 While using the standard example of Netbeans for PHPUnit testing, it runs perfectly.
Using PHPUnit to run tests, I\'d love to have code coverage metrics for my Smarty templates. Unfortunately this doesn\'t work out of the box, because Smarty compiles the templates into .php files, so