@@ -275,14 +275,14 @@ style from Drupal."
275275 ; ; the file written to has no significance, only the buffer
276276 (let ((tmp-filename (concat (make-temp-name temporary-file-directory) " .php" )))
277277 (dolist (mode '(pear wordpress symfony2))
278- (php-mode-custom-coding-style- set 'php-mode-coding- style ' drupal )
279- (php-mode-custom-coding- style-set 'php-mode-coding-style mode)
278+ (php-set- style " drupal" )
279+ (php-set- style ( symbol-name mode) )
280280 (should-not show-trailing-whitespace)
281- (php-mode-custom-coding-style- set 'php-mode-coding- style ' psr2 )
282- (php-mode-custom-coding- style-set 'php-mode-coding-style mode)
281+ (php-set- style " psr2" )
282+ (php-set- style ( symbol-name mode) )
283283 (should-not show-trailing-whitespace)
284284
285- (php-mode-custom-coding-style- set 'php-mode-coding- style ' drupal )
285+ (php-set- style " drupal" )
286286 (write-file tmp-filename)
287287 (should (looking-at-p " $" ))))))
288288
@@ -871,7 +871,7 @@ style from Drupal."
871871(ert-deftest php-mode-test-issue-200 ()
872872 " Test highlighting and elimination of extraneous whitespace in PSR-2 mode"
873873 (with-php-mode-test (" issue-200.php" )
874- (php-mode-custom-coding-style- set 'php-mode-coding- style ' psr2 )
874+ (php-set- style " psr2" )
875875 (should show-trailing-whitespace)
876876 (should (and (listp before-save-hook) (member 'delete-trailing-whitespace before-save-hook)))))
877877
0 commit comments