mlively/Phake — Issue #55: Example 6.2. Setting the Mock Class Loader
Author: isidromerayo
Created: 2012-01-21 11:14:58+00:00
State: open

I add de Phake::setLoader in my bootstrap/testhelper

run() /usr/share/php/PHPUnit/TextUI/Command.php:125
PHP 4. PHPUnit_TextUI_Command->handleArguments() /usr/share/php/PHPUnit/TextUI/Command.php:134
PHP 5. PHPUnit_TextUI_Command->handleBootstrap() /usr/share/php/PHPUnit/TextUI/Command.php:615
PHP 6. PHPUnit_Util_Fileloader::checkAndLoad() /usr/share/php/PHPUnit/TextUI/Command.php:862
PHP 7. PHPUnit_Util_Fileloader::load() /usr/share/php/PHPUnit/Util/Fileloader.php:79
PHP 8. include_once() /usr/share/php/PHPUnit/Util/Fileloader.php:95

My enviroment
$ php -v
PHP 5.3.6-13ubuntu3.3 with Suhosin-Patch (cli) (built: Dec 13 2011 18:18:37)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

$ phpunit --version
PHPUnit 3.6.8 by Sebastian Bergmann.

$ pear list -c pear.digitalsandwich.com
Installed packages, channel pear.digitalsandwich.com:
=====================================================
Package Version State
Phake 1.0.2 stable

Thanks!