Exemplo n.º 1
0
 public function testAddException()
 {
     $entry = new Entry(self::FAKE_ID);
     $entry->addException('exception #1');
     $entry->addException('exception #2');
     $this->assertEquals(2, count($entry->getExceptions()));
 }
Exemplo n.º 2
0
 public function setUp()
 {
     $this->entry = new Entry(self::FAKE_ID);
     $this->entry->addMessage(1, 'Message #1');
     $this->entry->addMessage(2, 'Message #2');
     $this->entry->addMessage(3, 'Message #3');
     $this->entry->addMessage(4, 'Message #4');
     $this->entry->addException('Exception #1');
     $this->entry->addException('Exception #2');
     $this->path = self::REPORT_PATH . $this->entry->getId() . '.txt';
 }