Example #1
0
 public function testFormat()
 {
     $fields = array('message' => 'foo');
     $f = new FirePhp();
     $line = $f->format($fields);
     $this->assertContains($fields['message'], $line);
 }
Example #2
0
 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);
 }