public function forLinux()
 {
     $this->assertEquals(CommandLine::$UNIX, CommandLine::forName('Linux'));
 }
Beispiel #2
0
 /**
  * Get command line arguments
  *
  * @return  string[]
  */
 public function getArguments()
 {
     if (null === $this->status['arguments']) {
         $parts = CommandLine::forName(PHP_OS)->parse($this->status['command']);
         $this->status['arguments'] = array_slice($parts, 1);
     }
     return $this->status['arguments'];
 }