branch: externals/phps-mode commit 7b8cea3e358cefdcfe92927cfb30ad632da83fbf Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added failing indentation test for class multiple implements --- 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 d0d6d5d..bedaedc 100644 --- a/phps-mode-test-functions.el +++ b/phps-mode-test-functions.el @@ -90,6 +90,12 @@ (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (1 0)) (5 (1 0)) (6 (1 0)) (7 (1 0)) (8 (1 0))) (phps-mode-test-functions--hash-to-list (phps-mode-functions-get-lines-indent))))) (phps-mode-test-with-buffer + "<?php\nclass MyClass extends MyAbstract implements\n myInterface,\n myInterface2\n{\n}\n" + "Class multi-line implements" + (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\n$str = <<<'EOD'\nExample of string\nspanning multiple lines\nusing nowdoc syntax.\nEOD;\n" "Multi-line NOWDOC string" (message "Tokens: %s" phps-mode-lexer-tokens)