branch: externals/phps-mode commit 83b0220d5b73560e75c88231b4b4c8d8944f9244 Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added new failing indent tests --- test/phps-mode-test-indent.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el index 01e88bfd33..ef7d6110d6 100644 --- a/test/phps-mode-test-indent.el +++ b/test/phps-mode-test-indent.el @@ -660,6 +660,21 @@ "<?php\nif (true) {\n $html .= 'My text'\n . 'and more text';\n foreach ($data as $key => $fields) {\n $html .= '<strong>' . $key . '</strong>';\n foreach ($fields as $key => $value) {\n $html .= '<span>' . $value . '</span>';\n }\n $html .= '</ul></li>';\n }\n $html .= '</dd>';\n}\n" "Two nested foreach loops containing string concatenation assignments") + ;; TODO Make this pass + (phps-mode-test-indent--should-equal + "<?php\n$var = Object->myMethod()\n ->myMethod2();\necho 'here';" + "Line after assignment were an chaining of object methods started") + + ;; TODO Make this pass + (phps-mode-test-indent--should-equal + "<?php\n$var = 23; /* 23 = Company */\necho 'was here';" + "Line after line that have an assignment doc-commented out") + + ;; TODO Make this pass + (phps-mode-test-indent--should-equal + "<?php\n$var = 23; // 23 = Company\necho 'was here';" + "Line after line that have an assignment commented out") + ) (defun phps-mode-test-indent--get-lines-indent-psr-2 ()