Skip to content

Commit

Permalink
[EventDispatcher] Rename UnmodifiableEventDispatcher to ImmutableEven…
Browse files Browse the repository at this point in the history
…tDispatcher
  • Loading branch information
Seldaek committed Jul 19, 2012
1 parent 67bf84d commit 274eb9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/EventDispatcher/CHANGELOG.md
Expand Up @@ -13,4 +13,4 @@ CHANGELOG
* added GenericEvent event class
* added the possibility for subscribers to subscribe several times for the
same event
* added UnmodifiableEventDispatcher
* added ImmutableEventDispatcher
Expand Up @@ -16,7 +16,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class UnmodifiableEventDispatcher implements EventDispatcherInterface
class ImmutableEventDispatcher implements EventDispatcherInterface
{
/**
* The proxied dispatcher.
Expand Down
Expand Up @@ -12,28 +12,28 @@
namespace Symfony\Component\EventDispatcher\Tests;

use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\UnmodifiableEventDispatcher;
use Symfony\Component\EventDispatcher\ImmutableEventDispatcher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class UnmodifiableEventDispatcherTest extends \PHPUnit_Framework_TestCase
class ImmutableEventDispatcherTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject
*/
private $innerDispatcher;

/**
* @var UnmodifiableEventDispatcher
* @var ImmutableEventDispatcher
*/
private $dispatcher;

protected function setUp()
{
$this->innerDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
$this->dispatcher = new UnmodifiableEventDispatcher($this->innerDispatcher);
$this->dispatcher = new ImmutableEventDispatcher($this->innerDispatcher);
}

public function testDispatchDelegates()
Expand Down

0 comments on commit 274eb9e

Please sign in to comment.