[EventDispatcher] Rename UnmodifiableEventDispatcher to ImmutableEventDispatcher
This commit is contained in:
parent
67bf84d7c5
commit
274eb9ebaf
@ -13,4 +13,4 @@ CHANGELOG
|
|||||||
* added GenericEvent event class
|
* added GenericEvent event class
|
||||||
* added the possibility for subscribers to subscribe several times for the
|
* added the possibility for subscribers to subscribe several times for the
|
||||||
same event
|
same event
|
||||||
* added UnmodifiableEventDispatcher
|
* added ImmutableEventDispatcher
|
||||||
|
@ -16,7 +16,7 @@ namespace Symfony\Component\EventDispatcher;
|
|||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*/
|
*/
|
||||||
class UnmodifiableEventDispatcher implements EventDispatcherInterface
|
class ImmutableEventDispatcher implements EventDispatcherInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The proxied dispatcher.
|
* The proxied dispatcher.
|
@ -12,13 +12,13 @@
|
|||||||
namespace Symfony\Component\EventDispatcher\Tests;
|
namespace Symfony\Component\EventDispatcher\Tests;
|
||||||
|
|
||||||
use Symfony\Component\EventDispatcher\Event;
|
use Symfony\Component\EventDispatcher\Event;
|
||||||
use Symfony\Component\EventDispatcher\UnmodifiableEventDispatcher;
|
use Symfony\Component\EventDispatcher\ImmutableEventDispatcher;
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*/
|
*/
|
||||||
class UnmodifiableEventDispatcherTest extends \PHPUnit_Framework_TestCase
|
class ImmutableEventDispatcherTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \PHPUnit_Framework_MockObject_MockObject
|
* @var \PHPUnit_Framework_MockObject_MockObject
|
||||||
@ -26,14 +26,14 @@ class UnmodifiableEventDispatcherTest extends \PHPUnit_Framework_TestCase
|
|||||||
private $innerDispatcher;
|
private $innerDispatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var UnmodifiableEventDispatcher
|
* @var ImmutableEventDispatcher
|
||||||
*/
|
*/
|
||||||
private $dispatcher;
|
private $dispatcher;
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->innerDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
|
$this->innerDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
|
||||||
$this->dispatcher = new UnmodifiableEventDispatcher($this->innerDispatcher);
|
$this->dispatcher = new ImmutableEventDispatcher($this->innerDispatcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDispatchDelegates()
|
public function testDispatchDelegates()
|
Reference in New Issue
Block a user