@@ -25,7 +25,7 @@ class ConsoleHandlerTest extends TestCase
2525{
2626 public function testConstructor ()
2727 {
28- $ handler = new ConsoleHandler (false );
28+ $ handler = new ConsoleHandler (null , false );
2929 $ this ->assertFalse ($ handler ->getBubble (), 'the bubble parameter gets propagated ' );
3030 }
3131
@@ -46,8 +46,7 @@ public function testVerbosityMapping($verbosity, $level, $isHandling)
4646 ->method ('getVerbosity ' )
4747 ->will ($ this ->returnValue ($ verbosity ))
4848 ;
49- $ handler = new ConsoleHandler ();
50- $ handler ->setOutput ($ output );
49+ $ handler = new ConsoleHandler ($ output );
5150 $ this ->assertSame ($ isHandling , $ handler ->isHandling (array ('level ' => $ level )),
5251 '->isHandling returns correct value depending on console verbosity and log level '
5352 );
@@ -81,8 +80,7 @@ public function testVerbosityChanged()
8180 ->method ('getVerbosity ' )
8281 ->will ($ this ->returnValue (OutputInterface::VERBOSITY_DEBUG ))
8382 ;
84- $ handler = new ConsoleHandler ();
85- $ handler ->setOutput ($ output );
83+ $ handler = new ConsoleHandler ($ output );
8684 $ this ->assertFalse ($ handler ->isHandling (array ('level ' => Logger::NOTICE )),
8785 'when verbosity is set to quiet, the handler does not handle the log '
8886 );
@@ -126,7 +124,7 @@ public function testWritingAndFormatting()
126124 ->will ($ this ->returnValue ($ errorOutput ))
127125 ;
128126
129- $ handler = new ConsoleHandler (false );
127+ $ handler = new ConsoleHandler (null , false );
130128 $ handler ->setOutput ($ output );
131129
132130 $ infoRecord = array (
0 commit comments