phpunit
(PHP)Unit testing with dependency injection (DI)
Over the past few days i read a lot about Dependency Injection. Now since I am trying to upgrade my phpunit skills i was thinking how to implement this DI. in my unit tests.[详细]
2023-04-11 22:57 分类:问答PHPUnit - Automatically retry failed tests X times?
I have a complex set of PHPUnit tests, some of which involve connecting to servers around the world that, for whatever reason, timeout sometimes.[详细]
2023-04-11 15:13 分类:问答Can't Unit Test: $_SESSION empties before each test is ran
I can\'t unit test my code. $_SESSION clears every time the next test is run. When I run testStartProductSession() my object adds some data to the $_SE开发者_高级运维SSION variable. But when I run t[详细]
2023-04-11 00:09 分类:问答PHPUnit Integration into NetBeans 7
I am trying to get PHPUnit working in Netbeans. I was using 3.4.9 but that refused to work and it was suggested to upgrade to the latest version. I have now upgraded to 3.5.15 and when I run it I get[详细]
2023-04-09 20:14 分类:问答Could you post examples on how to use PHPUnit with NetBeans?
I\'m new to PHPUnit and I want to use it with Netbeans. I\'m already aware that there is documentation for PHPUnit on it\'s own but there isn\'t much documentation on how to use it with Netbeans. It w[详细]
2023-04-09 16:38 分类:问答PHPUnit test case aware of symfony2 dependency injection container
I\'m actually testing a bundle that I created. All the code is fully unit tested but now, I want to test if my symfony2 services can 开发者_开发百科be request without any trouble.[详细]
2023-04-09 15:08 分类:问答I can't make my simple Selenium test work on any browser
I have a very simple and classic installation: Windows 7 WampServer with PEAR (PHP 5.3.5) PHPUnit and Selenium installed from PEAR[详细]
2023-04-09 14:50 分类:问答webdriver-test is unusable
On a virtual machine (clean, fresh Ubuntu server 11.04) I created a test website as described in Creating Your First Yii Application and now I want to create simple test using webdriver-test.[详细]
2023-04-09 04:54 分类:问答Why am I getting this error? Fatal error: Class 'TestCase' not found
Even though I have got the TestCase class included? <?php require_once(\"PHPUnit/Autoload.php\"); require_once(\"PHPUnit/Framework/TestCase.php\");[详细]
2023-04-09 04:48 分类:问答PHPUnit best practice for fixation of value returned by protected method?
consider the following code as PHP-style pseudo code to get my 开发者_Python百科point across. class C extends PHPUnit_Framework_TestCase[详细]
2023-04-08 16:20 分类:问答