How to provide different fixtures for test methods in PHPUnit/DbUnit

By overriding the getDataSet() method in your test class you'll be able to provide the common fixture for each test method. Sometimes it would be handy to have different fixtures for different test methods. This article shows how to achieve that.

Read more

Zend_Session_Namespace: Object does not persist across requests

When an object stored in Zend_Session_Namespace is lost across a request, it might have been caused by a simple initialization problem.

Read more

PHP: php_runkit.dll for Windows

Based on the problems having with getting E_DEPRECATED error messages in some applications and newer PHP versions (see here), I was looking for a solution to redefine error constants the way they expected them to be. With runkit_constant_redefine it is possible to redefine an already defined constant.

Read more

PHP: Get rid of E_DEPRECATED error messages

I've got E_DEPRECATED error messages even though error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT was set in php.ini.

Read more

Symfony: Custom error pages by bundle

I was looking for a solution to provide bundle based custom error pages with integrated fallback to the standard error pages provided by the framework.

Read more