run() public static méthode

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
Résultat integer
Exemple #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.');
 }