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 + + +