| @@ 40-45 (lines=6) @@ | ||
| 37 | * Test getDefaultFilename(). |
|
| 38 | */ |
|
| 39 | public function testGetDefaultFilename() { |
|
| 40 | if ( in_array( '--debug', $GLOBALS['argv'], true ) ) { |
|
| 41 | $output = new ConsoleOutput(); |
|
| 42 | $output->setVerbosity( ConsoleOutput::VERBOSITY_DEBUG ); |
|
| 43 | } else { |
|
| 44 | $output = new NullOutput(); |
|
| 45 | } |
|
| 46 | $w = TestingAccessWrapper::newFromObject( $this->getCommand( 'add' ) ); |
|
| 47 | ||
| 48 | // Test with no git checkout. |
|
| @@ 358-363 (lines=6) @@ | ||
| 355 | public function testGetTimestamp() { |
|
| 356 | $this->useTempDir(); |
|
| 357 | ||
| 358 | if ( in_array( '--debug', $GLOBALS['argv'], true ) ) { |
|
| 359 | $output = new ConsoleOutput(); |
|
| 360 | $output->setVerbosity( ConsoleOutput::VERBOSITY_DEBUG ); |
|
| 361 | } else { |
|
| 362 | $output = new NullOutput(); |
|
| 363 | } |
|
| 364 | $helper = new DebugFormatterHelper(); |
|
| 365 | ||
| 366 | // Create a non-git file in a non-git checkout. |
|