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

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

[elpa] externals/phps-mode 83b0220d5b 5/8: Added new failing indent test


From: Christian Johansson
Subject: [elpa] externals/phps-mode 83b0220d5b 5/8: Added new failing indent tests
Date: Thu, 27 Jan 2022 15:57:25 -0500 (EST)

branch: externals/phps-mode
commit 83b0220d5b73560e75c88231b4b4c8d8944f9244
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added new failing indent tests
---
 test/phps-mode-test-indent.el | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el
index 01e88bfd33..ef7d6110d6 100644
--- a/test/phps-mode-test-indent.el
+++ b/test/phps-mode-test-indent.el
@@ -660,6 +660,21 @@
    "<?php\nif (true) {\n    $html .= 'My text'\n        . 'and more text';\n   
 foreach ($data as $key => $fields) {\n        $html .= '<strong>' . $key . 
'</strong>';\n        foreach ($fields as $key => $value) {\n            $html 
.= '<span>' . $value . '</span>';\n        }\n        $html .= '</ul></li>';\n  
  }\n    $html .= '</dd>';\n}\n"
    "Two nested foreach loops containing string concatenation assignments")
 
+  ;; TODO Make this pass
+  (phps-mode-test-indent--should-equal
+   "<?php\n$var = Object->myMethod()\n    ->myMethod2();\necho 'here';"
+   "Line after assignment were an chaining of object methods started")
+
+  ;; TODO Make this pass
+  (phps-mode-test-indent--should-equal
+   "<?php\n$var = 23; /* 23 = Company */\necho 'was here';"
+   "Line after line that have an assignment doc-commented out")
+
+  ;; TODO Make this pass
+  (phps-mode-test-indent--should-equal
+   "<?php\n$var = 23; // 23 = Company\necho 'was here';"
+   "Line after line that have an assignment commented out")
+
   )
 
 (defun phps-mode-test-indent--get-lines-indent-psr-2 ()



reply via email to

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