Skip to content

Commit 9e1c535

Browse files
committed
Update builder tests to use "flags" instead of "type"
1 parent cfd207c commit 9e1c535

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/PhpParser/Builder/ClassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testAbstract() {
4343

4444
$this->assertEquals(
4545
new Stmt\Class_('Test', array(
46-
'type' => Stmt\Class_::MODIFIER_ABSTRACT
46+
'flags' => Stmt\Class_::MODIFIER_ABSTRACT
4747
)),
4848
$node
4949
);
@@ -57,7 +57,7 @@ public function testFinal() {
5757

5858
$this->assertEquals(
5959
new Stmt\Class_('Test', array(
60-
'type' => Stmt\Class_::MODIFIER_FINAL
60+
'flags' => Stmt\Class_::MODIFIER_FINAL
6161
)),
6262
$node
6363
);

test/PhpParser/Builder/MethodTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function testModifiers() {
2424

2525
$this->assertEquals(
2626
new Stmt\ClassMethod('test', array(
27-
'type' => Stmt\Class_::MODIFIER_PUBLIC
28-
| Stmt\Class_::MODIFIER_ABSTRACT
29-
| Stmt\Class_::MODIFIER_STATIC,
27+
'flags' => Stmt\Class_::MODIFIER_PUBLIC
28+
| Stmt\Class_::MODIFIER_ABSTRACT
29+
| Stmt\Class_::MODIFIER_STATIC,
3030
'stmts' => null,
3131
)),
3232
$node
@@ -40,8 +40,8 @@ public function testModifiers() {
4040

4141
$this->assertEquals(
4242
new Stmt\ClassMethod('test', array(
43-
'type' => Stmt\Class_::MODIFIER_PROTECTED
44-
| Stmt\Class_::MODIFIER_FINAL
43+
'flags' => Stmt\Class_::MODIFIER_PROTECTED
44+
| Stmt\Class_::MODIFIER_FINAL
4545
)),
4646
$node
4747
);

0 commit comments

Comments
 (0)