Documentation

RegisterListenersPassTest extends PHPUnit_Framework_TestCase
in package

Table of Contents

Methods

testAbstractEventListener()  : mixed
testAbstractEventSubscriber()  : mixed
testEventSubscriberResolvableClassName()  : mixed
testEventSubscriberUnresolvableClassName()  : mixed
testEventSubscriberWithoutInterface()  : mixed
Tests that event subscribers not implementing EventSubscriberInterface trigger an exception.
testPrivateEventListener()  : mixed
testPrivateEventSubscriber()  : mixed
testValidEventSubscriber()  : mixed

Methods

testAbstractEventListener()

public testAbstractEventListener() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The service "foo" must not be abstract as event listeners are lazy-loaded.

testAbstractEventSubscriber()

public testAbstractEventSubscriber() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The service "foo" must not be abstract as event subscribers are lazy-loaded.

testEventSubscriberUnresolvableClassName()

public testEventSubscriberUnresolvableClassName() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

You have requested a non-existent parameter "subscriber.class"

testEventSubscriberWithoutInterface()

Tests that event subscribers not implementing EventSubscriberInterface trigger an exception.

public testEventSubscriberWithoutInterface() : mixed
Tags
expectedException

\InvalidArgumentException

testPrivateEventListener()

public testPrivateEventListener() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The service "foo" must be public as event listeners are lazy-loaded.

testPrivateEventSubscriber()

public testPrivateEventSubscriber() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The service "foo" must be public as event subscribers are lazy-loaded.


        
On this page

Search results