/** * @test * @group metadata * @group contactperson * * @dataProvider \OpenConext\Value\TestDataProvider::notCallable * @expectedException InvalidArgumentException * * @param mixed $notCallable */ public function find_predicate_must_be_a_callable($notCallable) { $emailOne = new EmailAddress('*****@*****.**'); $emailTwo = new EmailAddress('*****@*****.**'); $list = new EmailAddressList(array($emailOne, $emailTwo)); $list->find($notCallable); }