File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments