Index: library/Zend/Tool/Framework/Client/Console/ResponseDecorator/Indention.php =================================================================== --- library/Zend/Tool/Framework/Client/Console/ResponseDecorator/Indention.php (revision 0) +++ library/Zend/Tool/Framework/Client/Console/ResponseDecorator/Indention.php (revision 0) @@ -0,0 +1,56 @@ +decorator = new Zend_Tool_Framework_Client_Console_ResponseDecorator_Indention(); + } + + public function testIndention_SingleLine() + { + $this->assertEquals(" foo", $this->decorator->decorate("foo", 1)); + $this->assertEquals(" foo", $this->decorator->decorate("foo", 2)); + $this->assertEquals(" foo", $this->decorator->decorate("foo", 3)); + $this->assertEquals(" foo", $this->decorator->decorate("foo", 4)); + } + + public function testIndention_MultiLine() + { + $text = "foo\nbar\r\nbaz\rfoobar"; + $expectedText = " foo\n bar\n baz\n foobar"; + + $this->assertEquals($expectedText, $this->decorator->decorate($text, 1)); + } +} \ No newline at end of file Property changes on: tests/Zend/Tool/Framework/Client/Console/ResponseDecorator/IndentionTest.php ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + LF