Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / prettyPrinter / stmt / class.test
diff --git a/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test b/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test
new file mode 100644 (file)
index 0000000..5225d2a
--- /dev/null
@@ -0,0 +1,53 @@
+Class
+-----
+<?php
+
+class Foo extends Bar implements ABC, \DEF, namespace\GHI
+{
+    var $a = 'foo';
+    private $b = 'bar';
+    static $c = 'baz';
+    function test()
+    {
+        $this->a = 'bar';
+        echo 'test';
+    }
+
+    protected function baz() {}
+    public function foo() {}
+    abstract static function bar() {}
+}
+
+trait Bar
+{
+    function test()
+    {
+    }
+}
+-----
+class Foo extends Bar implements ABC, \DEF, namespace\GHI
+{
+    var $a = 'foo';
+    private $b = 'bar';
+    static $c = 'baz';
+    function test()
+    {
+        $this->a = 'bar';
+        echo 'test';
+    }
+    protected function baz()
+    {
+    }
+    public function foo()
+    {
+    }
+    static abstract function bar()
+    {
+    }
+}
+trait Bar
+{
+    function test()
+    {
+    }
+}
\ No newline at end of file