Skip to content

Commit 75c6836

Browse files
committed
ERT test for emacs-php#19
1 parent 37aaab5 commit 75c6836

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

php-mode-test.el

+11
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,14 @@ Gets the face of the text after the comma."
103103
(re-search-forward "^if ")
104104
(should (string= (buffer-substring-no-properties (match-beginning 0) (point-max))
105105
expected)))))
106+
107+
(ert-deftest php-mode-test-issue-19 ()
108+
"Alignment of arrow operators."
109+
(with-php-mode-test ("issue-19.php")
110+
(indent-region (point-min) (point-max))
111+
(goto-char (point-min))
112+
(while (re-search-forward "^\\s-*\\$object->")
113+
;; Point is just after `->'
114+
(let ((col (current-column)))
115+
(search-forward "->")
116+
(should (eq (current-column) col))))))

0 commit comments

Comments
 (0)