Add bootstrapping code for Mockery

refs #4639
This commit is contained in:
Johannes Meyer 2014-04-11 09:35:19 +02:00
parent 7903d44af9
commit 3d62b8fda2
2 changed files with 8 additions and 0 deletions

View File

@ -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();

View File

@ -28,4 +28,7 @@
<directory suffix=".php">/usr/lib</directory>
</blacklist>
</filter>
<listeners>
<listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
</listeners>
</phpunit>