public function testFormat() { $fields = array('message' => 'foo'); $f = new FirePhp(); $line = $f->format($fields); $this->assertContains($fields['message'], $line); }
public function testFormatWithEmptyExtra() { $fields = array('message' => 'foo', 'extra' => array()); $f = new FirePhp(); list($line, $label) = $f->format($fields); $this->assertContains($fields['message'], $line); $this->assertNull($label); }