Beispiel #1
0
    }
    protected static function findParentPath($path)
    {
        $dir = __DIR__;
        $previousDir = '.';
        while (!is_dir($dir . '/' . $path)) {
            $dir = dirname($dir);
            if ($previousDir === $dir) {
                return false;
            }
            $previousDir = $dir;
        }
        return $dir . '/' . $path;
    }
}
Bootstrap::init();
/*putenv('APPLICATION_ENV=testing');

use Zend\ServiceManager\ServiceManager,
    Zend\Mvc\Service\ServiceManagerConfiguration,
    Zend\Di\Di,
    Zend\Di\Configuration as DiConfiguration,
    Zend\Loader\AutoloaderFactory,
    UkalaTest\Framework\TestCase;

chdir(__DIR__);

$previousDir = '.';

while (!file_exists('config/application.config.php')) {
    $dir = dirname(getcwd());
Beispiel #2
0
 public static function getServiceManager()
 {
     return Bootstrap::getServiceManager();
 }