branch: externals/phps-mode
commit 5d5ec06233544ef8492d757a54e1f4f4ab93c931
Author: Christian Johansson <christ...@cvj.se>
Commit: Christian Johansson <christ...@cvj.se>

    Started on test for automatic quotations
---
 phps-mode-test-functions.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index 7388a45..d1241a8 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -782,6 +782,15 @@
 
 
   ;; TODO Implement this
+  (phps-mode-test-with-buffer
+   "<?php\n$var = abc;"
+   "Double quotes around letters"
+   (goto-char 14)
+   (set-mark (point))
+   (forward-char 3)
+   (execute-kbd-macro (kbd "\""))
+   (let ((buffer-contents (buffer-substring-no-properties (point-min) 
(point-max))))
+     (should (equal buffer-contents "<?php\n$var = \"abc\";"))))
 
   )
 

Reply via email to