branch: externals/phps-mode
commit 6d8544d7fae7d135a0a7a66f76f7618516517e64
Author: Christian Johansson <christ...@cvj.se>
Commit: Christian Johansson <christ...@cvj.se>

    Added two more failing tests for indentation
---
 test/phps-mode-test-indent.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el
index 2f8dd35f1e..75fb869c11 100644
--- a/test/phps-mode-test-indent.el
+++ b/test/phps-mode-test-indent.el
@@ -418,6 +418,14 @@
    "<?php\nif (true) {\n    $variable1 = (true\n        ? true\n        : 
false);\n\n    $variable2 = (true\n        ? true\n        : false);\n\n    
$variable3 = myFunction(true);\n    echo 'here';\n\n}\n"
    "Line after multi-line parenthesized logical expression in assignment")
 
+  (phps-mode-test-indent--should-equal
+   "<?php\nif (true) {\n    return [\n        'data' => Object\n            
::myMethod($data)\n            ->myMethod2($data),\n    ];\n}\n"
+   "Chaining object operators and double-colon on multiple lines")
+
+  (phps-mode-test-indent--should-equal
+   "<?php\nif ($random) {\n    if ($random) {\n        if ($random) {\n        
}\n    }\n    apply_filters(\n        'my_filter',\n        $random\n    );\n   
 return $random;\n}\n"
+   "Line after line that ends a multi-line function call")
+
   )
 
 (defun phps-mode-test-indent--get-lines-indent-psr-2 ()

Reply via email to