branch: externals/phps-mode commit 91715f6ffb4de31e7c180461fe95b8c99b5fc792 Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added another test for multi-line function arguments --- phps-mode-test-functions.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el index affdf09..7b4e183 100644 --- a/phps-mode-test-functions.el +++ b/phps-mode-test-functions.el @@ -231,6 +231,12 @@ ;; (message "Tokens: %s" phps-mode-lexer-tokens) (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (1 0)) (5 (0 0)) (6 (0 0))) (phps-mode-test-functions--hash-to-list (phps-mode-functions-get-lines-indent))))) + (phps-mode-test-with-buffer + "<?php\nclass MyClass\n{\n public function __construct(\n $arg1,\n $arg2\n ) {\n echo 'here';\n }\n}" + "Class multi-line function arguments" + ;; (message "Tokens: %s" phps-mode-lexer-tokens) + (should (equal '((1 (0 0)) (2 (0 0)) (3 (0 0)) (4 (1 0)) (5 (2 0)) (6 (2 0)) (7 (1 0)) (8 (2 0)) (9 (1 0)) (10 (0 0))) (phps-mode-test-functions--hash-to-list (phps-mode-functions-get-lines-indent))))) + (phps-mode-test-with-buffer "<?php\n/**\n *\n */\nnamespace Aomebo\n{\n /**\n *\n */\n class Base\n {\n }\n}\n"