Skip to content
Browse files

Accidentally committed one removed test. Uncommented again.

Nevertheless XmlTest::testFormatWillRemoveExtraEmptyArrayFromEvent() will fail on windows 7 x64
  • Loading branch information...
1 parent 0ca3c5f commit 1c5fb4813ef37369d9e3423f00d25017eee1bd2f @stefankleff committed Oct 10, 2012
Showing with 18 additions and 18 deletions.
  1. +18 −18 tests/ZendTest/Log/Formatter/XmlTest.php
View
36 tests/ZendTest/Log/Formatter/XmlTest.php
@@ -179,22 +179,22 @@ public function testObjectsWithStringSerializationAreIncludedInFormattedString()
$this->assertContains($expected, $output);
}
-// /**
-// * @group ZF2-453
-// */
-// public function testFormatWillRemoveExtraEmptyArrayFromEvent()
-// {
-// $formatter = new XmlFormatter;
-// $d = new DateTime('2001-01-01T12:00:00-06:00');
-// $event = array(
-// 'timestamp' => $d,
-// 'message' => 'test',
-// 'priority' => 1,
-// 'priorityName' => 'CRIT',
-// 'extra' => array()
-// );
-// $expected = '<logEntry><timestamp>2001-01-01T12:00:00-06:00</timestamp><message>test</message><priority>1</priority><priorityName>CRIT</priorityName></logEntry>';
-// $expected .= PHP_EOL . PHP_EOL;
-// $this->assertEquals($expected, $formatter->format($event));
-// }
+ /**
+ * @group ZF2-453
+ */
+ public function testFormatWillRemoveExtraEmptyArrayFromEvent()
+ {
+ $formatter = new XmlFormatter;
+ $d = new DateTime('2001-01-01T12:00:00-06:00');
+ $event = array(
+ 'timestamp' => $d,
+ 'message' => 'test',
+ 'priority' => 1,
+ 'priorityName' => 'CRIT',
+ 'extra' => array()
+ );
+ $expected = '<logEntry><timestamp>2001-01-01T12:00:00-06:00</timestamp><message>test</message><priority>1</priority><priorityName>CRIT</priorityName></logEntry>';
+ $expected .= PHP_EOL . PHP_EOL;
+ $this->assertEquals($expected, $formatter->format($event));
+ }
}

0 comments on commit 1c5fb48

Please sign in to comment.
Something went wrong with that request. Please try again.