2 phpunit --story BowlingGameSpec ../Samples/BowlingGame/BowlingGameSpec.php
5 $_SERVER['argv'][1] = '--story';
6 $_SERVER['argv'][2] = 'BowlingGameSpec';
7 $_SERVER['argv'][3] = '../Samples/BowlingGame/BowlingGameSpec.php';
9 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
10 PHPUnit_TextUI_Command::main();
13 PHPUnit %s by Sebastian Bergmann.
16 [x] Score for gutter game is 0
19 Then Score should be 0
21 [x] Score for all ones is 20
44 Then Score should be 20
46 [x] Score for one spare and 3 is 16
52 Then Score should be 16
54 [x] Score for one strike and 3 and 4 is 24
60 Then Score should be 24
62 [x] Score for perfect game is 300
77 Then Score should be 300
79 Scenarios: 5, Failed: 0, Skipped: 0, Incomplete: 0.