emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode 245fbb02fd 2/3: Added a new integration test


From: Christian Johansson
Subject: [elpa] externals/phps-mode 245fbb02fd 2/3: Added a new integration test for narrow-to-defun
Date: Sat, 25 Mar 2023 12:03:52 -0400 (EDT)

branch: externals/phps-mode
commit 245fbb02fd6a529441a241774e7047bfa036df1a
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added a new integration test for narrow-to-defun
---
 test/phps-mode-test-integration.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/phps-mode-test-integration.el 
b/test/phps-mode-test-integration.el
index 81ba6512e6..6fafa792dd 100644
--- a/test/phps-mode-test-integration.el
+++ b/test/phps-mode-test-integration.el
@@ -176,6 +176,15 @@
    (execute-kbd-macro (kbd "<return>"))
    (insert "echo 'was here';"))
 
+  (phps-mode-test--incremental-vs-intial-buffer
+   "<?php\nnamespace myNamespace\n{\n    class myClass\n    {\n        public 
function myFunction()\n        {\n            echo 'my statement';\n        }\n 
       public function mySecondFunction()\n        {\n            echo 
'there';\n        }\n    }\n}\n"
+   "Integration-test 18 for regular PHP with namespaces, classes and functions 
using narrow-to-defun"
+   (goto-char 126)
+   (narrow-to-defun)
+   (execute-kbd-macro (kbd "<return>"))
+   (insert "echo 'was here';"))
+
+
   )
 
 (defun phps-mode-test-integration ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]