public function testTimespansWithSameStart()
 {
     try {
         $this->timeline->add(array('start' => strtotime('2009-02-13 23:31:30GMT'), 'end' => strtotime('2009-02-13 23:31:31GMT')));
         $this->timeline->add(array('start' => strtotime('2009-02-13 23:31:30GMT'), 'end' => strtotime('2009-02-14 00:00:00GMT')));
         $this->timeline->add(array('start' => strtotime('2009-02-13 23:31:30GMT'), 'end' => strtotime('2009-02-13 23:45:00GMT')));
     } catch (Exception $e) {
         self::assertTrue(false, 'adding two equal exceptions won\'t throw an error.');
         return;
     }
     self::assertSame(1, $this->timeline->count(), 'only one exception stored if there was a different one with same start.');
     $current = $this->timeline->current();
     self::assertSame(strtotime('2009-02-14 00:00:00GMT'), $current['end'], 'end of the longest event was stored');
 }
 protected function setExceptionData($data)
 {
     foreach ($data as $timespan) {
         $this->exceptions->add($timespan);
     }
 }