File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
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))))
Original file line number Diff line number Diff line change @@ -396,8 +396,9 @@ In that case set to `NIL'."
396
396
(defun php-mode-version ()
397
397
" Display string describing the version of PHP Mode."
398
398
(interactive )
399
- (message " PHP Mode %s of %s "
400
- php-mode-version-number php-mode-modified))
399
+ (funcall
400
+ (if (called-interactively-p 'interactive ) #'message #'format )
401
+ " PHP Mode %s of %s" php-mode-version-number php-mode-modified))
401
402
402
403
;;;### autoload
403
404
(define-obsolete-variable-alias 'php-available-project-root-files 'php-project-available-root-files " 1.19.0" )
You can’t perform that action at this time.
0 commit comments