phpunit
How to display the SQL query that causes a PDOException in Doctrine
I am playing with Doctrine 2 and PHPUnit and of course, something goes wrong sometimes. That\'s what unittesting is all about. But when I get a PDOException for one reason or the other, I don\'t get t[详细]
2023-03-25 11:02 分类:问答PHPUnit doesn't install an executable script
So I installed PHPUnit using PEAR, everything worked fine. The installation showed that everything was installed, and in my /usr/lib/php the PHPUnit folder is filled with the complete library.[详细]
2023-03-25 06:31 分类:问答Exclude certain directories and files in pdepend, phpmd, phpcpd, phpcs, phpdoc, phploc
In my project there are certain directories and certain php files which are very large in size due to which my build is failing and I want to exclude them in my build.xml[详细]
2023-03-25 05:50 分类:问答How to set $_SERVER[' '] variables when running phpunit tests through Jenkins
I am trying to write unit tests for an application where a lot of code changes is not possible. Almost all the .php files in the code base uses some $_SERVER[\'\'] variables like[详细]
2023-03-24 22:13 分类:问答Why does PHPUnit hide my xdebug backtrace?
I have PHPUnit and xdebug installed, and in my php.ini files for CLI I\'ve got: display_errors = On xdebug.default_enable = 1[详细]
2023-03-24 21:44 分类:问答Testing File uploads in Symfony2
In the Symfony2 documentation it gives the simple example of: $client->request(\'POST\', \'/submit\', array(\'name\' => \'Fabien\'), array(\'photo\' => \'/path/to/photo\'));[详细]
2023-03-24 12:32 分类:问答PHPUnit - assertion failed but I want to continue testing
->assertTrue(false); ->assertTrue(true); First assertion was failed and execution 开发者_JS百科was stopped. But I want to continue the further snippet of code.[详细]
2023-03-23 14:10 分类:问答How to store shared configuration for zend, phing and phpunit?
I have a PHP application that is written with Zend Framework. It uses Phing for a build system and PHPUnit for unit testing. All these parts have configuration settings. Zend uses application.xml, Phi[详细]
2023-03-23 07:21 分类:问答testing with phpunit
I\'m trying to test my controllers. I followed this guide: http://www.zendcasts.com/unit-testing-a ... s/2010/11/[详细]
2023-03-21 21:48 分类:问答How to safely unit-test write operations in Symfony 2?
I want to create tests for all my CRUD\'s. But how do I set a separate database for them? Is that the best way to go?[详细]
2023-03-20 23:44 分类:问答