1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Listener class prefix

This commit is contained in:
Stefan Kleff 2013-09-20 09:20:58 +02:00
parent 619c6a03ce
commit adf2b7cce7

View File

@ -29,7 +29,7 @@ class DDC2692Test extends \Doctrine\Tests\OrmFunctionalTestCase
public function testIsListenerCalledOnlyOnceOnPreFlush() public function testIsListenerCalledOnlyOnceOnPreFlush()
{ {
$listener = $this->getMock('Doctrine\Tests\ORM\Functional\Ticket\Listener', array('preFlush')); $listener = $this->getMock('Doctrine\Tests\ORM\Functional\Ticket\DDC2692Listener', array('preFlush'));
$listener->expects($this->once())->method('preFlush'); $listener->expects($this->once())->method('preFlush');
$this->_em->getEventManager()->addEventSubscriber($listener); $this->_em->getEventManager()->addEventSubscriber($listener);
@ -50,7 +50,7 @@ class DDC2692Foo
public $id; public $id;
} }
class Listener implements EventSubscriber { class DDC2692Listener implements EventSubscriber {
public function getSubscribedEvents() { public function getSubscribedEvents() {
return array(\Doctrine\ORM\Events::preFlush); return array(\Doctrine\ORM\Events::preFlush);