/**
  * {@inheritDoc}
  */
 public function setUp()
 {
     $this->serviceManager = ServiceManagerFactory::getServiceManager();
 }
Ejemplo n.º 2
0
<?php

use MonologModuleTest\ServiceManagerFactory;
ini_set('error_reporting', E_ALL | E_STRICT);
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
    require __DIR__ . '/../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../../autoload.php')) {
    require __DIR__ . '/../../../autoload.php';
} else {
    throw new RuntimeException('vendor/autoload.php could not be found. Did you run `php composer.phar install`?');
}
if (file_exists(__DIR__ . '/configuration.php')) {
    $config = (require __DIR__ . '/configuration.php');
} else {
    $config = (require __DIR__ . '/configuration.php.dist');
}
ServiceManagerFactory::setConfig($config);
unset($config);