branch: externals/phps-mode commit dabe0eac7c9a9870c5c2e33051bab14e0bc732ac Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added failing indentation test for multi-dimension array in assignment with double arrows --- 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 41ac8d0..b831b11 100644 --- a/phps-mode-test-functions.el +++ b/phps-mode-test-functions.el @@ -192,6 +192,11 @@ "Assignment with square bracketed array" (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 = 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))))) + ) (defun phps-mode-test-functions-get-lines-indent-psr-2 ()