Skip to content

Commit 9fe25c0

Browse files
committed
Add php-mode-debug-test
It is enough to ensure that this test works without errors.
1 parent fb8e748 commit 9fe25c0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

php-mode-test.el

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,18 @@ style from Drupal."
928928
"Test highlighting of type hints and return types."
929929
(with-php-mode-test ("type-hints.php" :faces t)))
930930

931+
(ert-deftest php-mode-debug-test ()
932+
"Test running php-mode-debug and php-mode-debug--buffer."
933+
(with-temp-buffer
934+
(php-mode)
935+
(php-mode-debug)
936+
(should (string= (buffer-name) "*PHP Mode DEBUG*"))
937+
(php-mode-debug--buffer 'top)
938+
(search-forward "--- PHP-MODE DEBUG BEGIN ---")
939+
(search-forward "--- PHP-MODE DEBUG END ---"))
940+
(with-current-buffer (php-mode-debug--buffer 'init)
941+
(should (eq 0 (- (point-max) (point-min))))))
942+
931943
(ert-deftest php-project-root ()
932944
(should (string= (abbreviate-file-name default-directory)
933945
(php-project-get-root-dir))))

0 commit comments

Comments
 (0)