Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'cs/psr-2' of https://github.com/Maks3w/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jul 13, 2012
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Writer/Syslog.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function setFacility($facility)

if (!in_array($facility, $this->validFacilities)) {
throw new Exception\InvalidArgumentException(
'Invalid log facility provided; please see http://php.net/openlog for a list of valid facility values'
'Invalid log facility provided; please see http://php.net/openlog for a list of valid facility values'
);
}

Expand Down
20 changes: 10 additions & 10 deletions test/Formatter/SimpleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testDefaultFormat()
$this->assertContains((string)$fields['priority'], $line);
}

function testComplexValues()
public function testComplexValues()
{
$fields = array('timestamp' => 0,
'priority' => 42,
Expand Down Expand Up @@ -90,15 +90,15 @@ function testComplexValues()
*/
public function testDefaultFormatShouldDisplayExtraInformations()
{
$message = 'custom message';
$exception = new \RuntimeException($message);
$event = array(
'timestamp' => date('c'),
'message' => 'Application error',
'priority' => 2,
'priorityName' => 'CRIT',
'info' => $exception,
);
$message = 'custom message';
$exception = new \RuntimeException($message);
$event = array(
'timestamp' => date('c'),
'message' => 'Application error',
'priority' => 2,
'priorityName' => 'CRIT',
'info' => $exception,
);

$formatter = new Simple();
$output = $formatter->format($event);
Expand Down
2 changes: 1 addition & 1 deletion test/Writer/DbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function testShutdownRemovesReferenceToDatabaseInstance()
*/
public function testThrowStrictSetFormatter()
{
$this->setExpectedException('PHPUnit_Framework_Error');
$this->setExpectedException('PHPUnit_Framework_Error');
$this->writer->setFormatter(new \StdClass());
}
}

0 comments on commit dbb18b2

Please sign in to comment.