PhpSpec\Loader\Node\SpecificationNode::getClassReflection PHP Method

getClassReflection() public method

public getClassReflection ( ) : ReflectionClass
return ReflectionClass
    public function getClassReflection()
    {
        return $this->class;
    }

Usage Example

 function let(SpecificationNode $specificationNode, ExampleEvent $exampleEvent, ServiceContainer $container, CodeCoverageSession $coverageSession)
 {
     $r = new \ReflectionClass(__CLASS__);
     $specificationNode->getClassReflection()->willReturn($r);
     $specificationNode->getTitle()->willReturn('Specification');
     $exampleEvent->getSpecification()->willReturn($specificationNode);
     $exampleEvent->getTitle()->willReturn('it should do something');
     $this->cwd = getcwd();
     chdir(sys_get_temp_dir());
     $container->get('coverage.session')->willReturn($coverageSession);
     $this->setCoverageRunner($coverageSession);
     $this->load($container);
 }
All Usage Examples Of PhpSpec\Loader\Node\SpecificationNode::getClassReflection