branch: externals/phps-mode commit 9659ab4582c2f22ded7aa259647886acd6ef4d2a Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added failing test for doc-comments are namespace and class --- phps-mode-test-functions.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el index 5757239..bcc74b4 100644 --- a/phps-mode-test-functions.el +++ b/phps-mode-test-functions.el @@ -170,6 +170,11 @@ (should (equal '((1 (0 0)) (2 (0 0)) (3 (0 1)) (4 (0 1)) (5 (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" + "Namespace and class with doc-comments" + (should (equal '((1 (0 0)) (2 (0 0)) (3 (0 1)) (4 (0 1)) (5 (0 0)) (6 (0 0)) (7 (1 0)) (8 (1 1)) (9 (1 1)) (10 (1 0)) (11 (1 0)) (12 (1 0)) (13 (0 0))) (phps-mode-test-functions--hash-to-list (phps-mode-functions-get-lines-indent))))) + + (phps-mode-test-with-buffer "<?php\n/** @define _SYSTEM_START_TIME_ Startup time for system */\ndefine('_SYSTEM_START_TIME_', microtime(true));\necho 'statement';\n" "Statement after a define() with a doc-comment" (should (equal '((1 (0 0)) (2 (0 0)) (3 (0 0)) (4 (0 0))) (phps-mode-test-functions--hash-to-list (phps-mode-functions-get-lines-indent)))))