Example #1
0
 public function testAddRemoveException()
 {
     $exception1 = $this->getMockDatetime();
     $exception2 = $this->getMockDatetime();
     $this->event->addException($exception1);
     $this->event->addException($exception2);
     $this->assertEquals(array($exception1, $exception2), $this->event->getExceptions()->getValues());
     $this->event->removeException($exception2);
     $this->assertEquals(array($exception1), $this->event->getExceptions()->getValues());
 }