Exemplo n.º 1
0
 public function case_offset_set_with_an_integer_index()
 {
     $this->given($group = new SUT('foo'), $exception1 = new SUT('bar'))->when($group->offsetSet(42, $exception1))->then->boolean($group->offsetExists(42))->isFalse()->boolean($group->offsetExists(0))->isTrue()->object($group->offsetGet(0))->isIdenticalTo($exception1);
 }