run() public static method

Entrypoint for standalone Robo-based tools. See docs/framework.md.
public static run ( string[] $argv, string $commandClasses, null | string $appName = null, null | string $appVersion = null, null | Symfony\Component\Console\Output\OutputInterface $output = null ) : integer
$argv string[]
$commandClasses string
$appName null | string
$appVersion null | string
$output null | Symfony\Component\Console\Output\OutputInterface
return integer
Exemplo n.º 1
0
 public function testRoboStaticRunMethod()
 {
     $argv = ['placeholder', 'test:symfony-style'];
     $commandFiles = ['\\Robo\\RoboFileFixture'];
     Robo::run($argv, $commandFiles, 'MyApp', '1.2.3', $this->guy->capturedOutputStream());
     $this->guy->seeInOutput('Some text in section one.');
 }