File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ information into AUTOLOADS."
190
190
" Auto-detect composer project root.
191
191
192
192
Return the parent directory of the current buffer file that contains a composer.json file."
193
- (let ((dominating-file (locate-dominating-file (buffer-file-name ) ede-php-autoload-composer-file)))
193
+ (let ((dominating-file (locate-dominating-file (or ( buffer-file-name ) default-directory ) ede-php-autoload-composer-file)))
194
194
(when dominating-file
195
195
(file-name-directory dominating-file))))
196
196
Original file line number Diff line number Diff line change 42
42
(should (string= (car (oref (ede-current-project ) :system-include-path ))
43
43
" /usr/share/php" ))))
44
44
45
+ (ert-deftest ede-php-autoload-creates-project-in-dired ()
46
+ " The EDE php autoload project instanciates properly in a dired buffer."
47
+ (with-current-project-file " ." " without-composer"
48
+ (should (ede-php-autoload-project-p (ede-current-project )))))
49
+
45
50
; ; Class loading tests
46
51
(define-class-definition-test ede-php-autoload-find-psr0 ()
47
52
" The definition for a PSR-4 class should be found."
You can’t perform that action at this time.
0 commit comments