Skip to content

Commit 6bedb4d

Browse files
committed
Add most simply test for php-project
1 parent 3e2e3f7 commit 6bedb4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php-mode-test.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
;;; Code:
3232

3333
(require 'php-mode)
34+
(require 'php-project)
3435
(require 'ert)
3536
(require 'cl-lib)
3637
(require 'imenu)
@@ -1075,6 +1076,10 @@ style from Drupal."
10751076
(search-forward variable)
10761077
(should (eq 'font-lock-type-face (get-text-property (- (point) 1) 'face))))))))
10771078

1079+
(ert-deftest php-project-root ()
1080+
(should (string= (abbreviate-file-name default-directory)
1081+
(php-project-get-root-dir))))
1082+
10781083
;;; php-mode-test.el ends here
10791084

10801085
;; Local Variables:

0 commit comments

Comments
 (0)