| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 
 | --TEST--
Default options handler 010 - Short options returned as array
--ARGS--
-f xhtml -I -r -t -d "tests/options/default_handler_009.phpt" -o "tests/options/" -F "tests/options/default_handler_009.xml" -p bookId -s idToSkip -v="E_ALL" -L en -c 1 -g highlighter -P PHP -C "some.css" -x -e ".html" -M -k="tests/options/"
--SKIPIF--
<?php
if (file_exists(__DIR__ . "/../../phd.config.php")) {
    die("Skipped: existing phd.config.php file will overwrite command line options.");
}
?>
--FILE--
<?php
namespace phpdotnet\phd;
require_once __DIR__ . "/../setup.php";
$optionsParser = new Options_Parser(
  new Options_Handler(
    $config, 
    new Package_Generic_Factory, 
    new OutputHandler($config)
  )
);
$commandLineOptions = $optionsParser->getopt();
var_dump($commandLineOptions);
?>
--EXPECTF--
array(20) {
  ["outputFormat"]=>
  array(1) {
    [0]=>
    string(5) "xhtml"
  }
  ["noIndex"]=>
  bool(true)
  ["forceIndex"]=>
  bool(true)
  ["noToc"]=>
  bool(true)
  ["xmlRoot"]=>
  string(13) "tests/options"
  ["xmlFile"]=>
  string(38) "tests/options/default_handler_009.phpt"
  ["outputDir"]=>
  string(14) "tests/options/"
  ["outputFilename"]=>
  string(23) "default_handler_009.xml"
  ["renderIds"]=>
  array(1) {
    ["bookId"]=>
    bool(true)
  }
  ["skipIds"]=>
  array(1) {
    ["idToSkip"]=>
    bool(true)
  }
  ["verbose"]=>
  int(%d)
  ["language"]=>
  string(2) "en"
  ["colorOutput"]=>
  bool(true)
  ["highlighter"]=>
  string(11) "highlighter"
  ["package"]=>
  array(1) {
    [0]=>
    string(3) "PHP"
  }
  ["css"]=>
  array(1) {
    [0]=>
    string(8) "some.css"
  }
  ["processXincludes"]=>
  bool(true)
  ["ext"]=>
  string(5) ".html"
  ["memoryIndex"]=>
  bool(true)
  ["packageDirs"]=>
  array(2) {
    [0]=>
    string(%d) "%s"
    [1]=>
    string(%d) "%s"
  }
}
 |