예제 #1
0
 /**
  * Tests console creation from config dir but there is no file.
  *
  * @expectedException \RuntimeException
  * @expectedExceptionMessage No config file founded
  */
 public function testCreateConsoleFromProjectWithoutFile()
 {
     $consoleHelper = new ConsoleHelper();
     $result = $consoleHelper->createConsoleFromProject(__DIR__);
     $this->assertInstanceOf('\\Symfony\\Component\\Console\\Application', $result);
 }
예제 #2
0
파일: pinguin.php 프로젝트: raphhh/pinguin
<?php

use Pinguin\ConsoleHelper;
@(include_once __DIR__ . '/../vendor/autoload.php') || @(include_once __DIR__ . '/../../../autoload.php');
$consoleHelper = new ConsoleHelper();
$consoleHelper->createConsoleFromLocalConfig()->run();