phpunit
PHPUnit - test autoloader class
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?[详细]
2023-04-06 09:34 分类:问答phpunit: get more debugging information when I get an error
I\'m interested in getting more dubugging information when I get an error. Now I\'m getting something like this:[详细]
2023-04-06 06:06 分类:问答PHPUnit - does nothing, no errors, no output
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[详细]
2023-04-06 03:10 分类:问答Testing a form with missing elements gives me an error with is ErrorController.php
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:[详细]
2023-04-06 03:02 分类:问答How to install PEAR with EasyPHP 5.3.8?
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[详细]
2023-04-06 01:37 分类:问答TDD: Test MVC application
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.[详细]
2023-04-05 16:28 分类:问答PHPUnit: expects method meaning
When I create a new mock I need to call the expects method. What exactly it does? What about its arguments?[详细]
2023-04-05 07:00 分类:问答Library to detect PHP errors/warnings in strings
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.[详细]
2023-04-05 05:15 分类:问答PHPUnit fails in Netbeans with Namespaces
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.[详细]
2023-04-04 05:57 分类:问答PHPUnit: Code coverage for smarty templates
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[详细]
2023-04-04 01:30 分类:问答
加载中,请稍侯......