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

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

[elpa] externals/phps-mode 7323416 31/96: Added failing test for parser


From: Christian Johansson
Subject: [elpa] externals/phps-mode 7323416 31/96: Added failing test for parser
Date: Fri, 29 Oct 2021 11:14:41 -0400 (EDT)

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

    Added failing test for parser
---
 test/phps-mode-test-parser.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test/phps-mode-test-parser.el b/test/phps-mode-test-parser.el
index 2e5dd59..b2b46e6 100644
--- a/test/phps-mode-test-parser.el
+++ b/test/phps-mode-test-parser.el
@@ -133,6 +133,13 @@
        '(nil ("echo" "'hello'" ";"))
        (phps-mode-parser-translate)))))
 
+  ;; TODO Make following test work
+  (phps-mode-test-parser--buffer-contents
+   "<?php\n\nnamespace myNamespaceA {\n    $var = 123;\n    class myClassA {\n 
       private $var2 = 123;\n        function myFunctionA($var3) {\n            
$var4 = 123;\n            if ($var) {\n                echo 'Miss';\n           
 }\n            if ($var2) {\n                echo 'Miss';\n            }\n     
       if ($var3) {\n                echo 'Hit';\n            }\n            if 
($var4) {\n                echo 'Hit';\n            }\n        }\n\n        
function myFuncti [...]
+   "Object oriented PHP with bracket namespace"
+   (lambda()
+     (phps-mode-parser-parse)))
+
   (message "\n-- Ran tests for parser boundaries. --"))
 
 (defun phps-mode-test-parser ()



reply via email to

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