@@ -158,10 +158,12 @@ file name and check that the faces of the fonts in the buffer match."
158
158
(php-mode-test-process-magics))))
159
159
,(if faces
160
160
`(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 ))))))
165
167
(goto-char (point-min ))
166
168
(let ((case-fold-search nil ))
167
169
,@body )))
@@ -421,14 +423,16 @@ style from Drupal."
421
423
(with-php-mode-test (" language-constructs.php" )
422
424
(while (search-forward " ClassName" nil t )
423
425
(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 )))))))
426
429
(with-php-mode-test (" language-constructs.php" )
427
430
(search-forward " Start:" )
428
431
(while (not (= (line-number-at-pos ) (count-lines (point-min ) (point-max ))))
429
432
(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 ))))))))
432
436
433
437
(ert-deftest php-mode-test-issue-178 ()
434
438
" Highligth as keyword and following symbol"
0 commit comments