Beispiel #1
0
 public function case_get_exceptions()
 {
     $this->given($group = new SUT('foo'), $exception1 = new SUT('bar'), $exception2 = new SUT('baz'), $group['bar'] = $exception1, $group->beginTransaction(), $group['baz'] = $exception2)->when($result = $group->getExceptions())->then->object($result)->isInstanceOf('ArrayObject')->object($result['bar'])->isIdenticalTo($exception1);
 }