/** * Test the instantiation from PHP reflector. */ public function testInstantiate() { $reflectedProperty = MethodReflection::instantiate(new \ReflectionMethod('TRex\\Reflection\\resources\\Foo', 'getFoo')); $this->assertInstanceOf('TRex\\Reflection\\MethodReflection', $reflectedProperty); $this->assertSame('TRex\\Reflection\\resources\\Foo::getFoo', $reflectedProperty->getName(true)); }