Permalink
Browse files

Merge branch 'release'

  • Loading branch information...
weierophinney committed Sep 13, 2012
2 parents b186150 + f496ccb commit da23b85accd7c6107bd47410512805cff19e7058
@@ -90,7 +90,7 @@ class Syslog extends AbstractWriter
public function __construct(array $params = array())
{
if (isset($params['application'])) {
- $this->application = $params['application'];
+ $this->appName = $params['application'];
}
$runInitializeSyslog = true;
@@ -18,4 +18,9 @@ public function getFacility()
{
return $this->facility;
}
+
+ public function getApplicationName()
+ {
+ return $this->appName;
+ }
}
@@ -93,4 +93,13 @@ public function testWriteWithFormatter()
$writer->write($event);
}
+
+ /**
+ * @group ZF2-534
+ */
+ public function testPassApplicationNameViaConstructor()
+ {
+ $writer = new CustomSyslogWriter(array('application' => 'test_app'));
+ $this->assertEquals('test_app', $writer->getApplicationName());
+ }
}

0 comments on commit da23b85

Please sign in to comment.