Skip to content

Commit 25633e9

Browse files
authored
Merge pull request #518 from emacs-php/fix/test-issue-53
Add detailed assertions beginning and end of case
2 parents a5b34aa + 923b93a commit 25633e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

php-mode-test.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ style from Drupal."
273273
(let ((tmp-filename (concat (make-temp-name temporary-file-directory) ".php")))
274274
(with-php-mode-test ("issue-53.php")
275275
(search-forward "return $this->bar;")
276+
(should (equal (list "before-write-file" mode nil)
277+
(list "before-write-file" mode (looking-at-p "$"))))
278+
276279
(php-set-style "drupal")
277280
(php-set-style (symbol-name mode))
278281
(should (equal (list "drupal" mode nil)
@@ -286,7 +289,8 @@ style from Drupal."
286289
(should (equal (list "drupal-2" mode t)
287290
(list "drupal-2" mode show-trailing-whitespace)))
288291
(write-file tmp-filename)
289-
(should (looking-at-p "$"))))))
292+
(should (equal (list "after-write-file" mode t)
293+
(list "after-write-file" mode (looking-at-p "$"))))))))
290294

291295
(ert-deftest php-mode-test-issue-73 ()
292296
"The `delete-indentation' function should work properly for PHP.

0 commit comments

Comments
 (0)