branch: externals/phps-mode
commit 18f1f12fc60d65403e35067fb4baf9598c549ee9
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Added new bookkeeping test for class parameters in constructor method
---
test/phps-mode-test-ast.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/test/phps-mode-test-ast.el b/test/phps-mode-test-ast.el
index 8190db8fb0..be42e58ddd 100644
--- a/test/phps-mode-test-ast.el
+++ b/test/phps-mode-test-ast.el
@@ -383,7 +383,11 @@
"A basic trait class"
'((" trait MyTrait function sayHello id $this" ((80 147))) (" trait MyTrait
id $var" ((35 39))) ((101 104) 1) ((94 99) 1) ((35 39) 1)))
- ;; TODO Add test for class properties in class construct here
+ ;; TODO Make this test pass
+ (phps-mode-test-ast--should-bookkeep
+ "<?php\nclass Person {\n public function __construct(\n private
string $name,\n private int $age,\n public $address\n ) {}\n}"
+ "Class with class properties in constructor."
+ nil)
(message "\n-- Ran tests for bookkeeping generation. --"))