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

    Added another indentation test
---
 phps-mode-test-functions.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index b831b11..a69308c 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -193,6 +193,11 @@
    (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (2 0)) (5 (1 0)) (6 (1 
0)) (7 (0 0))) (phps-mode-test-hash-to-list 
(phps-mode-functions-get-lines-indent)))))
 
   (phps-mode-test-with-buffer
+   "<?php\n$options = myFunction(\n    array(array(\n        'options' => 
123\n    ))\n);"
+   "Assignment with double-dimensional array with double arrow assignment 
inside function call"
+   (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (2 0)) (5 (1 0)) (6 (0 
0))) (phps-mode-test-hash-to-list (phps-mode-functions-get-lines-indent)))))
+
+  (phps-mode-test-with-buffer
    "<?php\n$options = array(\n    'options' => array(array(\n        
'errorTo'\n    ))\n);"
    "Assignment with three-dimensional array with double arrow assignment"
    (should (equal '((1 (0 0)) (2 (0 0)) (3 (1 0)) (4 (2 0)) (5 (1 0)) (6 (0 
0))) (phps-mode-test-hash-to-list (phps-mode-functions-get-lines-indent)))))

Reply via email to