Example #1
0
 public function get_get_stack_size()
 {
     $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->getStackSize())->then->integer($result)->isEqualTo(2);
 }