branch: externals/phps-mode commit d7aa22d25107c7c482d4426f9f74ae569f79c443 Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added two new failing tests for indentation --- test/phps-mode-test-indent.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el index c12b9166b7..db2903b1e4 100644 --- a/test/phps-mode-test-indent.el +++ b/test/phps-mode-test-indent.el @@ -332,6 +332,14 @@ "<?php\nif (true) {\n // My comment\n $cacheKey = sprintf(\n 'key_%s',\n md5(json_encode($key))\n );\n $cache =\n Cache::getInstance();\n " "Line after assignment from multi-line function-call") + (phps-mode-test-indent--should-equal + "<?php\nif (\n $responseStatusCode === 200\n || $responseStatusCode === 400\n) {\n \n}\n" + "Multi-line conditions with OR operators") + + (phps-mode-test-indent--should-equal + "<?php\nif (true) {\n foreach ($explode as $exploded) {\n if ($i == 0) {\n $lastName = trim($exploded);\n } elseif ($i == $lastIndex) {\n $lastQuantity = (int) $exploded;\n $matches[] = array(\n 'name' => $lastName,\n 'quantity' => $lastQuantity\n );\n }\n }\n}\n" + "Closing bracket on new line after ending statement / expression with closing bracket") + ) (defun phps-mode-test-indent--get-lines-indent-psr-2 ()