[commits] Horde branch master updated. e5aeb2b1ba1f4b4accb52a030e90e865e8a2e399

Gunnar Wrobel p at rdus.de
Sun Mar 6 09:39:09 UTC 2011


The branch "master" has been updated.
The following is a summary of the commits.

from: 45e44bd178ef4608e38d4a061ddfee1325cbafda

e5aeb2b Fix application autoloading for test suites.

-----------------------------------------------------------------------

commit e5aeb2b1ba1f4b4accb52a030e90e865e8a2e399
Author: Gunnar Wrobel <p at rdus.de>
Date:   Sun Mar 6 10:38:57 2011 +0100

    Fix application autoloading for test suites.
    
    Application autoloading was broken with the switch to PHPUnit >=3.5. The newer PHPUnit defines its own autoloader so ours does not get registered if we just check if there is already an autoloader present. A corresponding workaround was already available in framework/Test/lib/Horde/Test/Autoload.php but the autoloading in there did not yet support application mappings.
    
    Application level test suites should now also use the autoloading from the Test library but define the "$mappings" variable before pulling Autoload.php in, e.g.:
    
    $mappings = array('IMP' => dirname(__FILE__) . '/../../');
    require_once 'Horde/Test/Autoload.php';

 framework/Test/lib/Horde/Test/Autoload.php |   13 +++++++++++++
 imp/lib/tests/Imp/Autoload.php             |   23 ++---------------------
 2 files changed, 15 insertions(+), 21 deletions(-)

http://git.horde.org/horde-git/-/commit/e5aeb2b1ba1f4b4accb52a030e90e865e8a2e399




More information about the commits mailing list