emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode 91715f6 217/405: Added another test for multi


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 91715f6 217/405: Added another test for multi-line function arguments
Date: Sat, 13 Jul 2019 10:00:16 -0400 (EDT)

branch: externals/phps-mode
commit 91715f6ffb4de31e7c180461fe95b8c99b5fc792
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]