예제 #1
0
파일: indexTest.php 프로젝트: zubapita/min
 public function setUp()
 {
     $this->C = appConfigure::get();
     $targetUrl = 'http://' . $this->C['LOCAL_TEST_SERVER'];
     $this->setHost('127.0.0.1');
     // SeleniumServerがインストールされているホスト名
     $this->setPort(4444);
     // SeleniumServerの稼働しているポート
     $this->setBrowser('chrome');
     // firefox, chrome, iexplorer, safari
     $this->setBrowserUrl($targetUrl);
 }
예제 #2
0
파일: Console.php 프로젝트: zubapita/min
 /**
  * PHPConsoleを初期化、登録
  * 
  * @return void
  */
 public function __construct()
 {
     $this->C = appConfigure::get();
     if ($this->C['PRODUCTION_RUN']) {
         Console::$debugMode = 'false';
     } else {
         Console::$debugMode = 'true';
         $APP_ROOT = dirname(__DIR__);
         $logFile = $APP_ROOT . '/var/log/trace.log';
         $oldMask = umask(0);
         @chmod($logFile, 0777);
         umask($oldMask);
         Logger::configure(array('rootLogger' => array('appenders' => array('default')), 'appenders' => array('default' => array('class' => 'LoggerAppenderFile', 'layout' => array('class' => 'LoggerLayoutPattern', 'params' => array('conversionPattern' => '%date [%logger] %message%newline')), 'params' => array('file' => $logFile, 'append' => true)))));
         global $LOGGER;
         $LOGGER = Logger::getLogger("log");
         if (php_sapi_name() != 'cli') {
             global $handler;
             $handler = PhpConsole\Handler::getInstance();
             $handler->start();
             // start handling PHP errors & exceptions
             $handler->getConnector()->setSourcesBasePath($_SERVER['DOCUMENT_ROOT']);
         }
     }
 }
예제 #3
0
파일: AppCtl.php 프로젝트: zubapita/min
 /**
  * AppCtlクラスのコンストラクタ。
  * クラス間のデータ交換に使うDataBridgeクラスをインスタンス化し、
  * グローバル変数 dataBridgeに保存する。
  * またアプリのルートディレクトリなどを保存する
  *
  */
 public function __construct()
 {
     global $dataBridge;
     $this->APP_ROOT = $dataBridge->APP_ROOT;
     $this->dispatch_path = $dataBridge->dispatch_path;
     $this->dispatch_class = $dataBridge->dispatch_class;
     $this->dispatch_action = $dataBridge->dispatch_action;
     $this->dispatch_lang = $dataBridge->dispatch_lang;
     $this->dispatch_trace = $dataBridge->dispatch_trace;
     $this->C = appConfigure::get();
 }