branch: externals/phps-mode commit 7c0cb5731229f665ccd4f985ccdd75a004d53ffa Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added more multi-line assignment indent tests --- test/phps-mode-test-indent.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el index cff7c9be2e..90667c7f3f 100644 --- a/test/phps-mode-test-indent.el +++ b/test/phps-mode-test-indent.el @@ -323,6 +323,14 @@ "<?php\n$variable = array(\n 'random4',\n);\n$variable = true;\n" "Array assignment on three lines with trailing comma") + (phps-mode-test-indent--should-equal + "<?php\n$variable = [\n 'random4'\n];\n$variable = true;\n" + "Array assignment on three lines without trailing comma #2") + + (phps-mode-test-indent--should-equal + "<?php\n$variable = [\n 'random4',\n];\n$variable = true;\n" + "Array assignment on three lines with trailing comma #2") + (phps-mode-test-indent--should-equal "<?php\n$variable = array(\n 'random4' =>\n 'hello'\n);" "Array assignment with double arrow elements on four lines without trailing comma") @@ -331,6 +339,14 @@ "<?php\n$variable = array(\n 'random4' =>\n 'hello',\n);" "Array assignment with double arrow elements on four lines with trailing comma") + (phps-mode-test-indent--should-equal + "<?php\n$variable = [\n 'random4' =>\n 'hello'\n];" + "Array assignment with double arrow elements on four lines without trailing comma #2") + + (phps-mode-test-indent--should-equal + "<?php\n$variable = [\n 'random4' =>\n 'hello',\n];" + "Array assignment with double arrow elements on four lines with trailing comma #2") + (phps-mode-test-indent--should-equal "<?php\n$variable = array(\n 'random4');\n$variable = true;\n" "Array assignment on two lines")