IvanChepurnyi/EcomDev_PHPUnit — Issue #25: Zend_Log_Formatter_Simple not being loaded
Author: Demoli
Created: 2012-02-27 12:05:38+00:00
State: open

Test running is working fine for passing tests, but if a test fails I am receiving this error, instead of the PHPUnit or exception output (in the case of fatals)

PHP Fatal error: spl_autoload(): Class Zend_Log_Formatter_Simple could not be loaded in [redacted]/app/Mage.php on line 748
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP 3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:130
PHP 4. mageCoreErrorHandler() [redacted]/app/code/core/Mage/Core/functions.php:0
PHP 5. Mage::log() [redacted]/app/code/core/Mage/Core/functions.php:247

The tests actually pass fine on my local machine, but are failing on my test rig.

Test rig is running:
PHP 5.3.2 on Ubuntu 10.04.4
PHPUnit 3.6.10
EcomDev_PhpUnit - Latest git master

I am happy to provide further environment information if required.

Thank you.