/** * @test * @group metadata * @group contactperson * * @expectedException \OpenConext\Value\Exception\IndexOutOfBoundsException */ public function an_exception_is_thrown_when_attempting_to_get_an_element_with_an_index_larger_than_the_list_size() { $numberOne = new TelephoneNumber('123'); $numberTwo = new TelephoneNumber('456'); $list = new TelephoneNumberList(array($numberOne, $numberTwo)); $list->get(4); }