/** * @dataProvider numbers */ public function testAdditionWorksAsExpected($x, $y, $z) { $obj = new TestClass(); $this->assertEquals($obj->add($x, $y), $z); }