improve help output
[pharext/pharext] / tests / src / pharext / CliCommandTest.php
index 7fd24487d2888318328fce30d3ca7d2649b4819f..f8f4da442ea9d2ad58294bb77fdd37bbb0a2dd3a 100644 (file)
@@ -2,6 +2,11 @@
 
 namespace pharext;
 
+require __DIR__."/../../autoload.php";
+
+use pharext\Cli\Args as CliArgs;
+use pharext\Cli\Command as CliCommand;
+
 class CliCommandTest extends \PHPUnit_Framework_TestCase
 {
        use CliCommand;
@@ -37,14 +42,14 @@ class CliCommandTest extends \PHPUnit_Framework_TestCase
                $this->expectOutputString(<<<EOF
 Usage:
 
-  $ testprog [-hvqs] [-p|-n|-c <arg>]
+  $ testprog [-hvq] [-p|-n|-c <arg>] [-s [<arg>]]
 
     -h|--help                    Display help
     -v|--verbose                 More output
     -q|--quiet                   Less output
     -p|--prefix <arg>            PHP installation prefix if phpize is not in \$PATH, e.g. /opt/php7
     -n|--common-name <arg>       PHP common program name, e.g. php5 or zts-php [php]
-    -c|--configure <arg>         Additional extension configure flags, e.g. -c --with-flag
+    -c|--configure <arg>         Additional extension configure flags, e.g. -c --with-flag (MULTIPLE)
     -s|--sudo [<arg>]            Installation might need increased privileges [sudo -S %s]