示例#1
0
 public function testConstructor()
 {
     Juriya::reset();
     $launcher = new Juriya();
     $launcher->setEnvironment('test');
     $this->assertInstanceOf('\\Juriya\\Juriya', $launcher);
     $this->setExpectedException('RuntimeException', 'Juriya already initialized');
     $otherLauncher = new Juriya();
 }
示例#2
0
<?php

require_once realpath(__DIR__ . '/../Juriya.php');
use Juriya\Juriya;
Juriya::registerAutoloader();
Juriya::reset();
$launcher = new Juriya();
$launcher->setEnvironment('test');