From adf2b7cce7dd2c833974def851f1202c280d80f8 Mon Sep 17 00:00:00 2001 From: Stefan Kleff Date: Fri, 20 Sep 2013 09:20:58 +0200 Subject: [PATCH] Listener class prefix --- tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2692Test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2692Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2692Test.php index 6e2dff1f3..dfdb207fc 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2692Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2692Test.php @@ -29,7 +29,7 @@ class DDC2692Test extends \Doctrine\Tests\OrmFunctionalTestCase 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'); $this->_em->getEventManager()->addEventSubscriber($listener); @@ -50,7 +50,7 @@ class DDC2692Foo public $id; } -class Listener implements EventSubscriber { +class DDC2692Listener implements EventSubscriber { public function getSubscribedEvents() { return array(\Doctrine\ORM\Events::preFlush);