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

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

[elpa] externals/phps-mode 4636d702ac 10/27: Improved tests for PHP 8.2


From: Christian Johansson
Subject: [elpa] externals/phps-mode 4636d702ac 10/27: Improved tests for PHP 8.2
Date: Sat, 4 Mar 2023 03:24:56 -0500 (EST)

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

    Improved tests for PHP 8.2
---
 test/phps-mode-test-parser.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/phps-mode-test-parser.el b/test/phps-mode-test-parser.el
index b2d4abdcb9..a2c1ddab3f 100644
--- a/test/phps-mode-test-parser.el
+++ b/test/phps-mode-test-parser.el
@@ -95,9 +95,10 @@
 
   ;; TODO Make PHP 8.2 tests below pass
 
+
   (phps-mode-test-parser--buffer-contents
-   "<?php\nclass Foo {\n    public function bar((A&B)|null $entity) {\n        
return $entity;\n    }\n}\n"
-   "PHP 8.2 - disjunctive normal form (DNF) types"
+   "<?php\nreadonly class BlogData\n{\n    public string $title;\n\n    public 
Status $status;\n\n    public function __construct(string $title, Status 
$status)\n    {\n        $this->title = $title;\n        $this->status = 
$status;\n    }\n}\n"
+   "PHP 8.2 - readonly classes"
    (lambda()
 
      (let ((parse (phps-mode-parser-parse)))
@@ -108,8 +109,8 @@
          parse)))))
 
   (phps-mode-test-parser--buffer-contents
-   "<?php\nreadonly class BlogData\n{\n    public string $title;\n\n    public 
Status $status;\n\n    public function __construct(string $title, Status 
$status)\n    {\n        $this->title = $title;\n        $this->status = 
$status;\n    }\n}\n"
-   "PHP 8.2 - readonly classes"
+   "<?php\nclass Foo {\n    public function bar((A&B)|null $entity) {\n        
return $entity;\n    }\n}\n"
+   "PHP 8.2 - disjunctive normal form (DNF) types"
    (lambda()
 
      (let ((parse (phps-mode-parser-parse)))



reply via email to

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