X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/PHPFormatterTest.java b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/PHPFormatterTest.java index c13f010..a6915be 100644 --- a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/PHPFormatterTest.java +++ b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/PHPFormatterTest.java @@ -19,7 +19,7 @@ import org.eclipse.jface.text.IDocument; * Testcase for the PHP CodeFormatter * * @author Stefan Langer - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ */ public class PHPFormatterTest extends TestCase { private CodeFormatter fFormatter; @@ -136,7 +136,7 @@ public class PHPFormatterTest extends TestCase { + lineDelimiter + ");" + lineDelimiter + "?>"; junit.framework.Assert.assertEquals(formatedString, testResult); } - + public void testDoubleArrayFormatting() throws Exception { System.out.println("-----testDoubleArrayFormatting-----"); String text = " 'ok'," + lineDelimiter - + "\t'snd' => array (" + lineDelimiter - + "\t\t'1' => '11'," + lineDelimiter - + "\t\t'2' => '22'" + lineDelimiter - + "\t)," + lineDelimiter - + "\t'3th' => 'super'" + lineDelimiter - + ");" + lineDelimiter - + "?>"; + String testResult = " 'ok'," + lineDelimiter + + "\t'snd' => array (" + lineDelimiter + "\t\t'1' => '11'," + + lineDelimiter + "\t\t'2' => '22'" + lineDelimiter + "\t)," + + lineDelimiter + "\t'3th' => 'super'" + lineDelimiter + ");" + + lineDelimiter + "?>"; junit.framework.Assert.assertEquals(formatedString, testResult); } - - + } \ No newline at end of file