A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.tests / src / net / sourceforge / phpeclipse / phpeditor / php / test / PHPFormatterTest.java
index c13f010..a6915be 100644 (file)
@@ -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 = "<?php\n"
@@ -151,18 +151,13 @@ public class PHPFormatterTest extends TestCase {
                }
                String formatedString = fFormatter.format(text, indent, null,
                                lineDelimiter);
-               String testResult = "<?php" + lineDelimiter
-                       + "$my_array = array (" + lineDelimiter
-                       + "\t'first' => '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 = "<?php" + lineDelimiter + "$my_array = array ("
+                               + lineDelimiter + "\t'first' => '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