Skip to content

Commit

Permalink
Correct spelling mistake in class name.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Oct 6, 2013
1 parent 49ddf6a commit cd3defc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Test/Case/Event/CakeEventManagerTest.php
Expand Up @@ -68,7 +68,7 @@ public function stopListener($event) {
*
* @package Cake.Test.Case.Event
*/
class CustomTestEventListerner extends CakeEventTestListener implements CakeEventListener {
class CustomTestEventListener extends CakeEventTestListener implements CakeEventListener {

public function implementedEvents() {
return array(
Expand Down Expand Up @@ -325,7 +325,7 @@ public function testDispatchPassingParams() {
*/
public function testAttachSubscriber() {
$manager = new CakeEventManager;
$listener = $this->getMock('CustomTestEventListerner', array('secondListenerFunction'));
$listener = $this->getMock('CustomTestEventListener', array('secondListenerFunction'));
$manager->attach($listener);
$event = new CakeEvent('fake.event');

Expand All @@ -339,7 +339,7 @@ public function testAttachSubscriber() {
$manager->dispatch($event);

$manager = new CakeEventManager;
$listener = $this->getMock('CustomTestEventListerner', array('listenerFunction', 'thirdListenerFunction'));
$listener = $this->getMock('CustomTestEventListener', array('listenerFunction', 'thirdListenerFunction'));
$manager->attach($listener);
$event = new CakeEvent('multiple.handlers');
$listener->expects($this->once())->method('listenerFunction')->with($event);
Expand All @@ -354,7 +354,7 @@ public function testAttachSubscriber() {
*/
public function testDetachSubscriber() {
$manager = new CakeEventManager;
$listener = $this->getMock('CustomTestEventListerner', array('secondListenerFunction'));
$listener = $this->getMock('CustomTestEventListener', array('secondListenerFunction'));
$manager->attach($listener);
$expected = array(
array('callable' => array($listener, 'secondListenerFunction'), 'passParams' => true)
Expand Down

0 comments on commit cd3defc

Please sign in to comment.