mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix coding standards in Case/Event
This commit is contained in:
parent
8b797b2577
commit
b2d393eeb9
1 changed files with 4 additions and 3 deletions
|
@ -59,6 +59,7 @@ class CakeEventTestListener {
|
||||||
public function stopListener($event) {
|
public function stopListener($event) {
|
||||||
$event->stopPropagation();
|
$event->stopPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -87,6 +88,7 @@ class CustomTestEventListerner extends CakeEventTestListener implements CakeEven
|
||||||
public function thirdListenerFunction() {
|
public function thirdListenerFunction() {
|
||||||
$this->callStack[] = __FUNCTION__;
|
$this->callStack[] = __FUNCTION__;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -270,7 +272,6 @@ class CakeEventManagerTest extends CakeTestCase {
|
||||||
$this->assertTrue($event->isStopped());
|
$this->assertTrue($event->isStopped());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests event dispatching using priorities
|
* Tests event dispatching using priorities
|
||||||
*
|
*
|
||||||
|
@ -316,7 +317,7 @@ class CakeEventManagerTest extends CakeTestCase {
|
||||||
$listener = $this->getMock('CustomTestEventListerner', array('secondListenerFunction'));
|
$listener = $this->getMock('CustomTestEventListerner', array('secondListenerFunction'));
|
||||||
$manager->attach($listener);
|
$manager->attach($listener);
|
||||||
$event = new CakeEvent('fake.event');
|
$event = new CakeEvent('fake.event');
|
||||||
|
|
||||||
$manager->dispatch($event);
|
$manager->dispatch($event);
|
||||||
|
|
||||||
$expected = array('listenerFunction');
|
$expected = array('listenerFunction');
|
||||||
|
@ -402,4 +403,4 @@ class CakeEventManagerTest extends CakeTestCase {
|
||||||
$expected = array('secondListenerFunction');
|
$expected = array('secondListenerFunction');
|
||||||
$this->assertEquals($expected, $listener->callStack);
|
$this->assertEquals($expected, $listener->callStack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue