Exemplo n.º 1
0
 public function testLoadFail()
 {
     $this->assertFalse(Library::load('some\\stupid\\namespace'));
 }
Exemplo n.º 2
0
<?php

namespace app;

define('COMPILE_START', microtime(true));
define('APP_ROOT', realpath(dirname(__DIR__)));
defined('APPLICATION_ENV') || define('APPLICATION_ENV', getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production');
// intitialize ephFrame 0.3 with it's libs and stuff
define('EPHFRAME_PATH', APP_ROOT . '/lib/ephFrame/');
if (!(include EPHFRAME_PATH . '/core/Library.php')) {
    $message = 'ephFrame core could not be found. Check the value of EPHFRAME_PATH in ' . 'config/bootstrap.php. It should point to the directory containing your ' . 'ephFrame directory.';
    die(trigger_error($message, E_USER_ERROR));
}
\ephFrame\core\Library::add('ephFrame', EPHFRAME_PATH);
\ephFrame\core\Library::add('app', APP_ROOT . '/lib/app/');
require __DIR__ . '/config.php';
require __DIR__ . '/routes.php';
Exemplo n.º 3
0
<?php

define('EPHFRAME_PATH', realpath(__DIR__ . '/../'));
define('APP_ROOT', realpath(__DIR__));
require EPHFRAME_PATH . '/core/Library.php';
\ephFrame\core\Library::add('ephFrame', EPHFRAME_PATH);