mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
Update builder tests to use "flags" instead of "type"
This commit is contained in:
parent
cfd207cae5
commit
9e1c535b1d
@ -43,7 +43,7 @@ class ClassTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertEquals(
|
||||
new Stmt\Class_('Test', array(
|
||||
'type' => Stmt\Class_::MODIFIER_ABSTRACT
|
||||
'flags' => Stmt\Class_::MODIFIER_ABSTRACT
|
||||
)),
|
||||
$node
|
||||
);
|
||||
@ -57,7 +57,7 @@ class ClassTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertEquals(
|
||||
new Stmt\Class_('Test', array(
|
||||
'type' => Stmt\Class_::MODIFIER_FINAL
|
||||
'flags' => Stmt\Class_::MODIFIER_FINAL
|
||||
)),
|
||||
$node
|
||||
);
|
||||
|
@ -24,9 +24,9 @@ class MethodTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertEquals(
|
||||
new Stmt\ClassMethod('test', array(
|
||||
'type' => Stmt\Class_::MODIFIER_PUBLIC
|
||||
| Stmt\Class_::MODIFIER_ABSTRACT
|
||||
| Stmt\Class_::MODIFIER_STATIC,
|
||||
'flags' => Stmt\Class_::MODIFIER_PUBLIC
|
||||
| Stmt\Class_::MODIFIER_ABSTRACT
|
||||
| Stmt\Class_::MODIFIER_STATIC,
|
||||
'stmts' => null,
|
||||
)),
|
||||
$node
|
||||
@ -40,8 +40,8 @@ class MethodTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertEquals(
|
||||
new Stmt\ClassMethod('test', array(
|
||||
'type' => Stmt\Class_::MODIFIER_PROTECTED
|
||||
| Stmt\Class_::MODIFIER_FINAL
|
||||
'flags' => Stmt\Class_::MODIFIER_PROTECTED
|
||||
| Stmt\Class_::MODIFIER_FINAL
|
||||
)),
|
||||
$node
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user