PHP Class PhpSpec\Listener\CollaboratorNotFoundListener

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Mostra file Open project: phpspec/phpspec

Public Methods

Method Description
__construct ( ConsoleIO $io, PhpSpec\Locator\ResourceManager $resources, GeneratorManager $generator )
afterExample ( ExampleEvent $event )
afterSuite ( SuiteEvent $event )
getSubscribedEvents ( ) : array

Private Methods

Method Description
resourceIsInSpecNamespace ( PhpSpec\Exception\Fracture\CollaboratorNotFoundException $exception, Resource $resource ) : boolean

Method Details

__construct() public method

public __construct ( ConsoleIO $io, PhpSpec\Locator\ResourceManager $resources, GeneratorManager $generator )
$io PhpSpec\Console\ConsoleIO
$resources PhpSpec\Locator\ResourceManager
$generator PhpSpec\CodeGenerator\GeneratorManager

afterExample() public method

public afterExample ( ExampleEvent $event )
$event PhpSpec\Event\ExampleEvent

afterSuite() public method

public afterSuite ( SuiteEvent $event )
$event PhpSpec\Event\SuiteEvent

getSubscribedEvents() public static method

public static getSubscribedEvents ( ) : array
return array