function test_getReflection_should_return_instance_of_current_routed_class() { $route = new ClassName('any', '/', 'DateTime'); $refl = $route->getReflection('format'); $this->assertInstanceOf('ReflectionMethod', $refl); }
/** * @covers Respect\Rest\Routes\ClassName::getReflection */ function test_getReflection_should_return_instance_make_it_snap() { $route = new ClassName('any', '/', 'DateTime'); $refl = $route->getReflection('oXoXoXoXoXo'); $this->assertNull($refl); }