From 861ca4b535ae5caa5611374ed4747a34b9f827b8 Mon Sep 17 00:00:00 2001 From: GSC Frank Date: Mon, 13 Jan 2014 02:48:23 -0200 Subject: [PATCH] Change hardcoded events names by its constant. --- test/ViewTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ViewTest.php b/test/ViewTest.php index 3fb95520..312c25be 100644 --- a/test/ViewTest.php +++ b/test/ViewTest.php @@ -295,7 +295,7 @@ public function testCanTriggerPostRendererEvent() { $this->attachTestStrategies(); $test = (object) array('flag' => false); - $this->view->getEventManager()->attach('renderer.post', function ($e) use ($test) { + $this->view->getEventManager()->attach(ViewEvent::EVENT_RENDERER_POST, function ($e) use ($test) { $test->flag = true; }); $variables = array(