/** * 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); }
<?php use Pinguin\ConsoleHelper; @(include_once __DIR__ . '/../vendor/autoload.php') || @(include_once __DIR__ . '/../../../autoload.php'); $consoleHelper = new ConsoleHelper(); $consoleHelper->createConsoleFromLocalConfig()->run();