/** * @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() { $emailOne = new EmailAddress('*****@*****.**'); $emailTwo = new EmailAddress('*****@*****.**'); $list = new EmailAddressList(array($emailOne, $emailTwo)); $list->get(4); }