| @@ 224-230 (lines=7) @@ | ||
| 221 | * |
|
| 222 | * @return void |
|
| 223 | */ |
|
| 224 | public function testCliUsageContainsIgnoreViolationsOnExitOption() |
|
| 225 | { |
|
| 226 | $args = array(__FILE__, __FILE__, 'text', 'codesize'); |
|
| 227 | $opts = new CommandLineOptions($args); |
|
| 228 | ||
| 229 | $this->assertContains('--ignore-violations-on-exit:', $opts->usage()); |
|
| 230 | } |
|
| 231 | ||
| 232 | /** |
|
| 233 | * Tests if CLI usage contains the auto-discovered renderers |
|
| @@ 237-243 (lines=7) @@ | ||
| 234 | * |
|
| 235 | * @return void |
|
| 236 | */ |
|
| 237 | public function testCliUsageContainsAutoDiscoveredRenderers() |
|
| 238 | { |
|
| 239 | $args = array(__FILE__, __FILE__, 'text', 'codesize'); |
|
| 240 | $opts = new CommandLineOptions($args); |
|
| 241 | ||
| 242 | $this->assertContains('Available formats: html, json, text, xml.', $opts->usage()); |
|
| 243 | } |
|
| 244 | ||
| 245 | /** |
|
| 246 | * testCliUsageContainsStrictOption |
|
| @@ 250-256 (lines=7) @@ | ||
| 247 | * |
|
| 248 | * @return void |
|
| 249 | */ |
|
| 250 | public function testCliUsageContainsStrictOption() |
|
| 251 | { |
|
| 252 | $args = array(__FILE__, __FILE__, 'text', 'codesize'); |
|
| 253 | $opts = new CommandLineOptions($args); |
|
| 254 | ||
| 255 | $this->assertContains('--strict:', $opts->usage()); |
|
| 256 | } |
|
| 257 | ||
| 258 | /** |
|
| 259 | * testCliOptionsIsStrictReturnsFalseByDefault |
|