branch: externals/phps-mode
commit 66d43520527f0bebb9182a7fcbfce7836f74da95
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Added more failing indent tests
---
test/phps-mode-test-indent.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el
index d177e58c9c..e3d18a8643 100644
--- a/test/phps-mode-test-indent.el
+++ b/test/phps-mode-test-indent.el
@@ -400,6 +400,18 @@
"<?php\nif (true) {\n $replacements = array(\n
'$object_address_1' =>\n $object->get_shipping_address_1(),\n
'$object_address_2' =>\n $object->get_shipping_address_2(),\n
'$object_name' =>\n $object->get_shipping_first_name()\n
. ' ' . $object->get_shipping_last_name(),\n '$object_city' =>\n
$object->get_shipping_city(),\n '$object_company' =>\n
$object->get_shipping_company(),\n [...]
"Multi-dimensional array with assignment from object methods")
+ (phps-mode-test-indent--should-equal
+ "<?php\nif (true) {\n $true = (true\n && (true || false)\n
&& (true || false));\n echo 'here';\n}"
+ "Line after multi-line parenthesized logical expression")
+
+ (phps-mode-test-indent--should-equal
+ "<?php\nif (true) {\n echo 'here';\n/* something */\n echo
'there';\n}\n"
+ "Line after commented out lines with wrong indentation")
+
+ (phps-mode-test-indent--should-equal
+ "<?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")
+
)
(defun phps-mode-test-indent--get-lines-indent-psr-2 ()