/** * @dataProvider createExceptionProvider * @expectedException InvalidArgumentException */ public function testCreateExceptions($data) { Number::create($data); }