/** * @test * @group metadata * @group contactperson * * @dataProvider \OpenConext\Value\TestDataProvider::notCallable * @expectedException InvalidArgumentException * * @param mixed $notCallable */ public function find_predicate_must_be_a_callable($notCallable) { $numberOne = new TelephoneNumber('123'); $numberTwo = new TelephoneNumber('456'); $list = new TelephoneNumberList(array($numberOne, $numberTwo)); $list->find($notCallable); }