@@ -158,10 +158,12 @@ file name and check that the faces of the fonts in the buffer match."
158158 (php-mode-test-process-magics))))
159159 ,(if faces
160160 `(should (equal
161- (php-mode-test--parse-list-file
162- (concat (expand-file-name , file php-mode-test-dir)
163- (if (eq t , faces ) " .faces" , faces )))
164- (php-mode-test--buffer-face-list (current-buffer )))))
161+ (cons , file
162+ (php-mode-test--parse-list-file
163+ (concat (expand-file-name , file php-mode-test-dir)
164+ (if (eq t , faces ) " .faces" , faces ))))
165+ (cons , file
166+ (php-mode-test--buffer-face-list (current-buffer ))))))
165167 (goto-char (point-min ))
166168 (let ((case-fold-search nil ))
167169 ,@body )))
@@ -421,14 +423,16 @@ style from Drupal."
421423 (with-php-mode-test (" language-constructs.php" )
422424 (while (search-forward " ClassName" nil t )
423425 (backward-char )
424- (should (eq 'font-lock-type-face
425- (get-text-property (point ) 'face )))))
426+ (let ((token (symbol-at-point )))
427+ (should (equal (list token 'font-lock-type-face )
428+ (list token (get-text-property (point ) 'face )))))))
426429 (with-php-mode-test (" language-constructs.php" )
427430 (search-forward " Start:" )
428431 (while (not (= (line-number-at-pos ) (count-lines (point-min ) (point-max ))))
429432 (forward-line 1 )
430- (should (eq 'php-keyword
431- (get-text-property (point ) 'face ))))))
433+ (let ((token (symbol-at-point )))
434+ (should (equal (list token 'php-keyword )
435+ (list token (get-text-property (point ) 'face ))))))))
432436
433437(ert-deftest php-mode-test-issue-178 ()
434438 " Highligth as keyword and following symbol"
0 commit comments