X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=inline;f=vendor%2Fnikic%2Fphp-parser%2Ftest%2Fcode%2FprettyPrinter%2Fstmt%2Fclass.test;fp=vendor%2Fnikic%2Fphp-parser%2Ftest%2Fcode%2FprettyPrinter%2Fstmt%2Fclass.test;h=5225d2a6ec2035a10547e8e2f675978971f21a88;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=0000000000000000000000000000000000000000;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website 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 index 000000000..5225d2a6e --- /dev/null +++ b/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test @@ -0,0 +1,53 @@ +Class +----- +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