getBubble example

/** * Tests the ConsoleHandler and also the ConsoleFormatter. * * @author Tobias Schultze <http://tobion.de> */
class ConsoleHandlerTest extends TestCase
{
    public function testConstructor()
    {
        $handler = new ConsoleHandler(null, false);
        $this->assertFalse($handler->getBubble(), 'the bubble parameter gets propagated');
    }

    public function testIsHandling()
    {
        $handler = new ConsoleHandler();
        $this->assertFalse($handler->isHandling(RecordFactory::create()), '->isHandling returns false when no output is set');
    }

    /** * @dataProvider provideVerbosityMappingTests */
    
Home | Imprint | This part of the site doesn't use cookies.