Code Duplication    Length = 6-6 lines in 2 locations

projects/packages/changelogger/tests/php/tests/src/AddCommandTest.php 1 location

@@ 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.

projects/packages/changelogger/tests/php/tests/src/UtilsTest.php 1 location

@@ 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.