phpunit
PHPUnit Selenium Server - Better/Custom Error Handling?
Is there a way I can have PHPUnit just continue after an error?For example, I have a large test suite (400+ steps) and I would prefer that if say, an element is not开发者_JAVA技巧 found, it doesn\'t s[详细]
2023-04-13 07:38 分类:问答Start Selenium RC server automatically
How can I automatically start and stop the Selenium RC server when I run my phpunit tests? I thought I could create a little bash script that does something like this (does not work though):[详细]
2023-04-13 02:14 分类:问答Unit test for mocking a method called by new class object
I am writing unit test for an existing code which is like this class someClass { public function __construct() { ... }[详细]
2023-04-13 01:45 分类:问答Code is executed before PHPUnit's initialization
I was reading my project\'s code coverage report, and I noticed something strange: a line was uncovered, but I was sure that line got executed during the tests. So, I added a var_dump() before it and[详细]
2023-04-12 19:17 分类:问答Are there ways of increasing the execution speed of mysqli->prepare?
My tests are running pretty slow... I\'ve got under 100 tests, but it still takes over 10 seconds开发者_开发百科 to run on a fast machine. I tried disabling code coverage, and using caching for the co[详细]
2023-04-12 19:15 分类:问答PHPUnit Test Suite - Cannot redeclare class Mocking & Concrete classes
Here is my problem. I have a test suite that is testing a few classes. My classes all use dependency injection.[详细]
2023-04-12 18:27 分类:问答passing custom php.ini to phpunit
How to pass a custom php.ini to phpunit? The source uses get_cfg_var instead of ini_get so unfortunately it doesn\'t use values set by ini_set, -d option etc.[详细]
2023-04-12 17:35 分类:问答How much memory for unit test suite is ok?
I have ~700 tests with ~1500 assertions, tests are running on sqlite on RAM drive. I run this using phpunit /dir/name, without any additional suite setup.[详细]
2023-04-12 11:30 分类:问答Running phpunit with no arguments after installing Xdebug via PECL generates warnings about permissions
I am running Zend Framework 1.10 on Ubuntu 10.04, just installed Xdebug to generate code coverage, via PECL.[详细]
2023-04-12 07:29 分类:问答Selenium RC / PHPUnit test always times out?
I\'m really new to testing so go easy on me. I\'ve got Seleneium working with Pear, PHPUnit, and Sauce Labs class SauceOnDemandTestCase.php. I can run tests and did a simple on just fine. But now I\'m[详细]
2023-04-12 06:54 分类:问答