Annotation of embedaddon/php/sapi/cli/tests/012.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: invalid arguments and error messages
                      3: --SKIPIF--
                      4: <?php include "skipif.inc"; ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: $php = getenv('TEST_PHP_EXECUTABLE');
                      9: 
                     10: var_dump(`"$php" -n -F some.php -F some.php`);
                     11: var_dump(`"$php" -n -F some.php -R some.php`);
                     12: var_dump(`"$php" -n -R some.php -F some.php`);
                     13: var_dump(`"$php" -n -R some.php -R some.php`);
                     14: var_dump(`"$php" -n -f some.php -f some.php`);
                     15: var_dump(`"$php" -n -B '' -B ''`);
                     16: var_dump(`"$php" -n -E '' -E ''`);
                     17: var_dump(`"$php" -n -r '' -r ''`);
                     18: 
                     19: echo "Done\n";
                     20: ?>
                     21: --EXPECTF--    
1.1.1.2 ! misho      22: string(32) "You can use -R or -F only once.
        !            23: "
        !            24: string(32) "You can use -R or -F only once.
        !            25: "
        !            26: string(32) "You can use -R or -F only once.
        !            27: "
        !            28: string(32) "You can use -R or -F only once.
        !            29: "
        !            30: string(26) "You can use -f only once.
        !            31: "
        !            32: string(26) "You can use -B only once.
        !            33: "
        !            34: string(26) "You can use -E only once.
        !            35: "
        !            36: string(26) "You can use -r only once.
        !            37: "
1.1       misho      38: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>