/** * Returns the PHP extension reflection. * * @return \TokenReflection\IReflectionExtension */ public function getExtension() { return ReflectionExtension::create(parent::getExtension(), $this->broker); }
/** * Tests an exception thrown when trying to create the reflection from a PHP internal reflection. * * @expectedException \TokenReflection\Exception\RuntimeException */ public function testInternalMethodReflectionCreate() { Php\ReflectionExtension::create(new \ReflectionClass('Exception'), $this->getBroker()); }