/** * @dataProvider providerCallback */ public function testShouldCreateAReflectionBasedOnCallable($callable, $expectedReflectionIntance) { $callback = new Callback($callable); $actualReflectionObject = $callback->getReflection(); $this->assertInstanceOf($expectedReflectionIntance, $actualReflectionObject); }