mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 00:59:49 +01:00
e4b837e0c4
The list was getting unweildly. Also improve error message when parsing fails in pretty printer test and extend some tests.
40 lines
570 B
Plaintext
40 lines
570 B
Plaintext
Class
|
|
-----
|
|
<?php
|
|
|
|
class Foo
|
|
{
|
|
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() {}
|
|
}
|
|
-----
|
|
class Foo
|
|
{
|
|
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()
|
|
{
|
|
}
|
|
} |