/** * Constructor * * @param string $label The label of the table */ function __construct($label) { parent::__construct(FirePhp::TABLE, null); $this->setLabel($label); }
public function testDestroyedBufferedMessage() { $this->_setupWithoutFrontController(); $channel = Channel\HttpHeaders::getInstance(); $protocol = $channel->getProtocol(FirePhp::PROTOCOL_URI); $message = new FirePhp\Message(FirePhp::LOG, 'Message 1'); $message->setBuffered(true); FirePhp::send($message); $this->assertEquals($message->getStyle(), FirePhp::LOG); $message->setStyle(FirePhp::INFO); $this->assertEquals($message->getStyle(), FirePhp::INFO); $message->setDestroy(true); Channel\HttpHeaders::getInstance()->flush(); $this->assertFalse($protocol->getMessages()); }