From 3d62b8fda2a47963179b9570254c764494b893ca Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 11 Apr 2014 09:35:19 +0200 Subject: [PATCH] Add bootstrapping code for Mockery refs #4639 --- test/php/bootstrap.php | 5 +++++ test/php/phpunit.xml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/test/php/bootstrap.php b/test/php/bootstrap.php index 0ecc6bb12..4fc192e7d 100644 --- a/test/php/bootstrap.php +++ b/test/php/bootstrap.php @@ -17,6 +17,11 @@ if (!defined('ICINGA_LIBDIR')) { // This is needed to get the Zend Plugin loader working set_include_path(implode(PATH_SEPARATOR, array($libraryPath, get_include_path()))); +require_once 'Mockery/Loader.php'; +require_once 'Hamcrest/Hamcrest.php'; +$mockeryLoader = new \Mockery\Loader; +$mockeryLoader->register(); + require_once($libraryPath . '/Icinga/Application/Loader.php'); $loader = new Icinga\Application\Loader(); diff --git a/test/php/phpunit.xml b/test/php/phpunit.xml index 6ae11aebb..b5ab5a395 100644 --- a/test/php/phpunit.xml +++ b/test/php/phpunit.xml @@ -28,4 +28,7 @@ /usr/lib + + +