aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Pospychala2012-10-18 03:58:32 (EDT)
committerJacek Pospychala2012-10-18 03:58:32 (EDT)
commit1a0807e8af538e253fee4fa84686c0d5337a71de (patch)
tree3ef6a0f0466c722876e6bfab0ed41cffdb3daff2
parente2e962528a6dfd27aed362ab1c77a9672d2dfc50 (diff)
downloadorg.eclipse.pdt-1a0807e8af538e253fee4fa84686c0d5337a71de.zip
org.eclipse.pdt-1a0807e8af538e253fee4fa84686c0d5337a71de.tar.gz
org.eclipse.pdt-1a0807e8af538e253fee4fa84686c0d5337a71de.tar.bz2
buf 386550 apply Natalia tests
-rw-r--r--tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatements11.pdtt23
-rw-r--r--tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatementsWithComments1.pdtt35
-rw-r--r--tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatementsWithComments2.pdtt35
3 files changed, 93 insertions, 0 deletions
diff --git a/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatements11.pdtt b/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatements11.pdtt
new file mode 100644
index 0000000..ab6a5b9
--- /dev/null
+++ b/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatements11.pdtt
@@ -0,0 +1,23 @@
+--TEST--
+Tests formatting array statements.
+--FILE--
+<?php
+return array(
+ 'controllers' => array(
+ 'invokables' => array(
+ 'ControllerSUperHoo' => 'NewModule\Controller\ControllerSUperHooController',
+ |),
+ )
+);
+?>
+--EXPECT--
+<?php
+return array(
+ 'controllers' => array(
+ 'invokables' => array(
+ 'ControllerSUperHoo' => 'NewModule\Controller\ControllerSUperHooController',
+
+ ),
+ )
+);
+?> \ No newline at end of file
diff --git a/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatementsWithComments1.pdtt b/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatementsWithComments1.pdtt
new file mode 100644
index 0000000..963e732
--- /dev/null
+++ b/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatementsWithComments1.pdtt
@@ -0,0 +1,35 @@
+--TEST--
+Tests formatting array statements.
+--FILE--
+<?php
+return array(
+ 'router' => array(
+ 'routes' => array(
+ 'module-name-here' => array(
+ 'type' => 'Literal',
+ 'options' => array(
+ // Change this to something specific to your module|
+ 'route' => '/module-specific-root',
+ )
+ ),
+ ),
+ ),
+);
+?>
+--EXPECT--
+<?php
+return array(
+ 'router' => array(
+ 'routes' => array(
+ 'module-name-here' => array(
+ 'type' => 'Literal',
+ 'options' => array(
+ // Change this to something specific to your module
+
+ 'route' => '/module-specific-root',
+ )
+ ),
+ ),
+ ),
+);
+?> \ No newline at end of file
diff --git a/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatementsWithComments2.pdtt b/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatementsWithComments2.pdtt
new file mode 100644
index 0000000..103f405
--- /dev/null
+++ b/tests/org.eclipse.php.ui.tests/workspace/formatter-autoedit/arrayStatementsWithComments2.pdtt
@@ -0,0 +1,35 @@
+--TEST--
+Tests formatting array statements.
+--FILE--
+<?php
+return array(
+ 'router' => array(
+ 'routes' => array(
+ 'module-name-here' => array(
+ 'type' => 'Literal',
+ 'options' => array(
+ |// Change this to something specific to your module
+ 'route' => '/module-specific-root',
+ )
+ ),
+ ),
+ ),
+);
+?>
+--EXPECT--
+<?php
+return array(
+ 'router' => array(
+ 'routes' => array(
+ 'module-name-here' => array(
+ 'type' => 'Literal',
+ 'options' => array(
+
+ // Change this to something specific to your module
+ 'route' => '/module-specific-root',
+ )
+ ),
+ ),
+ ),
+);
+?> \ No newline at end of file