public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit9b607ebcb1b04559cb28056ea537cd59', 'loadClassLoader'));
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit9b607ebcb1b04559cb28056ea537cd59', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $includePaths = (require __DIR__ . '/include_paths.php');
     array_push($includePaths, get_include_path());
     set_include_path(join(PATH_SEPARATOR, $includePaths));
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     require $vendorDir . '/phpunit/phpunit/PHPUnit/Autoload.php';
     return $loader;
 }
 public static function getLoader()
 {
     if (null !== static::$loader) {
         return static::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInitFilesAutoloadOrder', 'loadClassLoader'));
     static::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInitFilesAutoloadOrder', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     require $vendorDir . '/c/lorem/testC.php';
     require $vendorDir . '/z/foo/testA.php';
     require $baseDir . '/root.php';
     require $vendorDir . '/b/bar/testB.php';
     require $vendorDir . '/d/d/testD.php';
     require $vendorDir . '/e/e/testE.php';
     return $loader;
 }
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInitFilesAutoload', 'loadClassLoader'), true, true);
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInitFilesAutoload', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     require $vendorDir . '/a/a/test.php';
     require $vendorDir . '/b/b/test2.php';
     require $vendorDir . '/c/c/foo/bar/test3.php';
     require $baseDir . '/root.php';
     require $vendorDir . '/c/c/foo/bar/test4.php';
     return $loader;
 }
Exemplo n.º 4
0
    public static function getLoader()
    {
        if (null !== self::$loader) {
            return self::$loader;
        }

        spl_autoload_register(array('ComposerAutoloaderInitb7e6f174f5db5d4b66d33c6f27212e33', 'loadClassLoader'), true, true);
        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
        spl_autoload_unregister(array('ComposerAutoloaderInitb7e6f174f5db5d4b66d33c6f27212e33', 'loadClassLoader'));

        $vendorDir = dirname(__DIR__);
        $baseDir = dirname($vendorDir);

        $map = require __DIR__ . '/autoload_namespaces.php';
        foreach ($map as $namespace => $path) {
            $loader->add($namespace, $path);
        }

        $classMap = require __DIR__ . '/autoload_classmap.php';
        if ($classMap) {
            $loader->addClassMap($classMap);
        }

        $loader->register(true);

        require $vendorDir . '/kriswallsmith/assetic/src/functions.php';
        require $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php';

        return $loader;
    }
 /**
  * @param \Composer\Autoload\ClassLoader $loader
  * @param bool                           $takePriority
  * @param null                           $basePath
  *
  * @return \Composer\Autoload\ClassLoader
  */
 function get(Composer\Autoload\ClassLoader $loader, $takePriority = true, $basePath = null)
 {
     // The default base path assumes /base/group/repo/src
     if (!$basePath) {
         $basePath = dirname(dirname(dirname(__DIR__)));
     }
     foreach ($loader->getPrefixes() as $namespace => $paths) {
         $path = trim($namespace, '\\');
         $path = str_replace('\\', '/', $path);
         // Add original case
         $loader->add($namespace, sprintf('%s/%s/src', $basePath, $path), $takePriority);
         // Add lowercase
         if (strtolower($path) !== $path) {
             $loader->add($namespace, sprintf('%s/%s/src', $basePath, strtolower($path)), $takePriority);
         }
     }
     return $loader;
 }
Exemplo n.º 6
0
 public static function getLoader()
 {
     $loader = new \Composer\Autoload\ClassLoader();
     $composerDir = __DIR__ . '/composer';
     $map = (require $composerDir . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require $composerDir . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     return $loader;
 }
Exemplo n.º 7
0
 public static function getLoader()
 {
     $loader = new \Composer\Autoload\ClassLoader();
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     require $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php';
     return $loader;
 }
Exemplo n.º 8
0
 public static function getLoader()
 {
     $loader = new \Composer\Autoload\ClassLoader();
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     spl_autoload_register(array('ComposerAutoloaderInitTargetDir', 'autoload'));
     $loader->register();
     return $loader;
 }
Exemplo n.º 9
0
 public static function getLoader()
 {
     if (null !== static::$loader) {
         return static::$loader;
     }
     static::$loader = $loader = new \Composer\Autoload\ClassLoader();
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     return $loader;
 }
Exemplo n.º 10
0
 public static function getLoader()
 {
     $loader = new \Composer\Autoload\ClassLoader();
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $includePaths = (require __DIR__ . '/include_paths.php');
     array_push($includePaths, get_include_path());
     set_include_path(join(PATH_SEPARATOR, $includePaths));
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     return $loader;
 }
 public static function getLoader()
 {
     $loader = new \Composer\Autoload\ClassLoader();
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     require $vendorDir . '/c/lorem/testC.php';
     require $vendorDir . '/a/foo/testA.php';
     require $baseDir . '/root.php';
     require $vendorDir . '/b/bar/testB.php';
     return $loader;
 }
Exemplo n.º 12
0
 public static function getLoader()
 {
     if (null !== static::$loader) {
         return static::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInitcaccbb1dae7e5bd0f3d1bf80a43364f8', 'loadClassLoader'));
     static::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInitcaccbb1dae7e5bd0f3d1bf80a43364f8', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     return $loader;
 }
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit8b0c7360ea92b58d81541586f7975de4', 'loadClassLoader'));
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit8b0c7360ea92b58d81541586f7975de4', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     return $loader;
 }
Exemplo n.º 14
0
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInitba25550ebe32c3811d02261c520ae1dc', 'loadClassLoader'));
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInitba25550ebe32c3811d02261c520ae1dc', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname(dirname(dirname(dirname($vendorDir))));
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     return $loader;
 }
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInitd482bdd05036fbe0fd83e6f023bf5b6d', 'loadClassLoader'), true, true);
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInitd482bdd05036fbe0fd83e6f023bf5b6d', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     return $loader;
 }
Exemplo n.º 16
0
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInita8543a1c3dddf41544207267478be2f7', 'loadClassLoader'), true, true);
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInita8543a1c3dddf41544207267478be2f7', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     require $vendorDir . '/illuminate/support/src/helpers.php';
     return $loader;
 }
Exemplo n.º 17
0
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit6e55b3b5ae126a14e2bd04aeaffc3dce', 'loadClassLoader'), true, true);
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit6e55b3b5ae126a14e2bd04aeaffc3dce', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     require $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php';
     return $loader;
 }
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit71ac6b4973af1d38af735a588f54190c', 'loadClassLoader'));
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit71ac6b4973af1d38af735a588f54190c', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     require $vendorDir . '/nette/nette/Nette/loader.php';
     return $loader;
 }
Exemplo n.º 19
0
 public static function getLoader()
 {
     if (null !== static::$loader) {
         return static::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit121888b6576d33d04a56c26dfb765109', 'loadClassLoader'));
     static::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit121888b6576d33d04a56c26dfb765109', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     //var_dump($loader);
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     return $loader;
 }
Exemplo n.º 20
0
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInita68df53df45822dfde9509c09ba4dcc4', 'loadClassLoader'), true, true);
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInita68df53df45822dfde9509c09ba4dcc4', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     require $vendorDir . '/kriswallsmith/assetic/src/functions.php';
     return $loader;
 }
Exemplo n.º 21
0
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit8316e9ec5b59d2df7293a38d6ac991cf', 'loadClassLoader'));
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit8316e9ec5b59d2df7293a38d6ac991cf', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     require $vendorDir . '/illuminate/support/Illuminate/Support/helpers.php';
     return $loader;
 }
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInitb4b8e31a5aebd45f1d58443bcfa52dac', 'loadClassLoader'));
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInitb4b8e31a5aebd45f1d58443bcfa52dac', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     //        require $vendorDir . '/kriswallsmith/assetic/src/functions.php';
     //        require $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php';
     return $loader;
 }
Exemplo n.º 23
0
 public static function getLoader()
 {
     if (null !== static::$loader) {
         return static::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit93f1e84b83781b432268394c32fb013f', 'loadClassLoader'));
     static::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit93f1e84b83781b432268394c32fb013f', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register();
     require $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php';
     require $vendorDir . '/kriswallsmith/assetic/src/functions.php';
     return $loader;
 }
Exemplo n.º 24
0
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit4799ddabad5344c4442ef0811aabc779', 'loadClassLoader'));
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit4799ddabad5344c4442ef0811aabc779', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     require $vendorDir . '/zendframework/zendframework/library/Zend/Stdlib/compatibility/autoload.php';
     require $vendorDir . '/zendframework/zendframework/library/Zend/Session/compatibility/autoload.php';
     return $loader;
 }
Exemplo n.º 25
0
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInit85cb097038a4296122052537bf6b9158', 'loadClassLoader'));
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInit85cb097038a4296122052537bf6b9158', 'loadClassLoader'));
     $vendorDir = dirname(__DIR__);
     $baseDir = dirname($vendorDir);
     $includePaths = (require __DIR__ . '/include_paths.php');
     array_push($includePaths, get_include_path());
     set_include_path(join(PATH_SEPARATOR, $includePaths));
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->add($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     return $loader;
 }
Exemplo n.º 26
0
<?php

// autoload.php generated by Composer
if (!class_exists('Composer\\Autoload\\ClassLoader', false)) {
    require __DIR__ . '/ClassLoader.php';
}
return call_user_func(function () {
    $loader = new \Composer\Autoload\ClassLoader();
    $map = (require __DIR__ . '/autoload_namespaces.php');
    foreach ($map as $namespace => $path) {
        $loader->add($namespace, $path);
    }
    $classMap = (require __DIR__ . '/autoload_classmap.php');
    if ($classMap) {
        $loader->addClassMap($classMap);
    }
    $loader->register();
    return $loader;
});
Exemplo n.º 27
0
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
namespace test;

require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../vendor/simpletest/simpletest/autorun.php';
$loader = new \Composer\Autoload\ClassLoader();
$loader->add('test', __DIR__ . '/..');
$loader->register();
class TraceReporter extends \TextReporter
{
    public function paintException($exception)
    {
        parent::paintException($exception);
        print $exception->getTraceAsString();
        print "\n";
    }
}
\SimpleTest::prefer(new TraceReporter());
class gihpPlumbingTests extends \TestSuite
{
    public function __construct()
    {
Exemplo n.º 28
0
<?php

/**
 * Copyright (C) 2012-2013 Derek J. Lambert
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
require __DIR__ . '/../../../../vendor/autoload.php';
error_reporting(E_ALL | E_STRICT);
$loader = new \Composer\Autoload\ClassLoader();
$loader->add('CrEOF\\CustomTypes\\Tests', __DIR__ . '/../../..');
$loader->add('Doctrine\\Tests', __DIR__ . '/../../../../vendor/doctrine/orm/tests');
$loader->register();
}
// Disable hashed target names:
define('NETHGUI_ENABLE_TARGET_HASH', FALSE);
// Enable nethgui javascript files auto inclusion:
define('NETHGUI_ENABLE_INCLUDE_WIDGET', TRUE);
// Disable caching:
// define('NETHGUI_ENABLE_HTTP_CACHE_HEADERS', FALSE);
// Enable debug mode (produces more verbose log
// output and uses non-minified js & css)
define('NETHGUI_DEBUG', TRUE);
define('NETHGUI_MENU_CATEGORIES', 'Status, Management, Administration, Security, Configuration, Gateway');
$namespaces = array();
include_once "autoload.php";
$nsbase = dirname(__DIR__);
$loader = new \Composer\Autoload\ClassLoader();
$loader->add('Nethgui', $nsbase);
$loader->add('NethServer', $nsbase);
$loader->register();
foreach ($loader->getPrefixes() as $nsName => $paths) {
    $namespaces[trim($nsName, '\\')] = reset($paths) . DIRECTORY_SEPARATOR . trim($nsName, '\\');
}
$loader->add('Pimple', $nsbase);
$loader->add('Mustache', $nsbase);
$loader->add('Symfony', $nsbase);
$FW = new \Nethgui\Framework();
$FW->setLogLevel(E_WARNING | E_ERROR | E_NOTICE)->registerNamespace($namespaces[__NAMESPACE__])->setDefaultModule('Dashboard')->setDecoratorTemplate('NethServer\\Template\\NethServer')->setForcedLoginModule(function ($dc) {
    return $dc['Platform']->getDatabase('configuration')->getProp('httpd-admin', 'ForcedLoginModule');
})->setAuthenticationValidator(function ($dc) {
    $v = new \NethServer\Tool\PamValidator();
    $v->setLog($dc['Log']);
    return $v;
Exemplo n.º 30
0
<?php

require_once __DIR__ . '/vendor/autoload.php';
$loader = new \Composer\Autoload\ClassLoader();
$loader->add('Bigtallbill', __DIR__ . '/src');
$loader->register();