PHP Class PhpSpec\Laravel\Listener\LaravelListener

This only applies to specs that implement the LaravelBehaviorInterface.
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Exibir arquivo Open project: benconstable/phpspec-laravel

Public Methods

Method Description
__construct ( Laravel $laravel ) Constructor.
beforeSpecification ( SpecificationEvent $event ) : void Run the 'beforeSpecification' hook.
getSubscribedEvents ( )

Method Details

__construct() public method

Constructor.
public __construct ( Laravel $laravel )
$laravel PhpSpec\Laravel\Util\Laravel

beforeSpecification() public method

Run the 'beforeSpecification' hook.
public beforeSpecification ( SpecificationEvent $event ) : void
$event PhpSpec\Event\SpecificationEvent
return void

getSubscribedEvents() public static method

public static getSubscribedEvents ( )