public function beforeSpecification(SpecificationEvent $event)
    {
        if ($event->getSpecification()->getClassReflection()->hasMethod('setLaravel')) {
            $this->laravel->refreshApplication();
        }
    }
public function beforeSpecification(SpecificationEvent $event)
    {
        if ($event->getSpecification()->getClassReflection()->hasMethod('setLaravel')) {
            $this->laravel->refreshApplication();
        }
    }
public function beforeSpecification ( SpecificationEvent $ event ) { if ( $ event -> getSpecification ( ) -> getClassReflection ( ) -> hasMethod ( 'setLaravel' ) ) { $ this -> laravel -> refreshApplication ( ) ; } }
Run the 'beforeSpecification' hook.

@param \PhpSpec\Event\SpecificationEvent $event
@return void
Run the beforeSpecification hook .