File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -928,6 +928,18 @@ style from Drupal."
928
928
" Test highlighting of type hints and return types."
929
929
(with-php-mode-test (" type-hints.php" :faces t )))
930
930
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
+
931
943
(ert-deftest php-project-root ()
932
944
(should (string= (abbreviate-file-name default-directory)
933
945
(php-project-get-root-dir))))
You can’t perform that action at this time.
0 commit comments