3 namespace PhpParser\Node\Stmt;
5 class ClassConstTest extends \PHPUnit_Framework_TestCase
8 * @dataProvider provideModifiers
10 public function testModifiers($modifier) {
11 $node = new ClassConst(
13 constant('PhpParser\Node\Stmt\Class_::MODIFIER_' . strtoupper($modifier))
16 $this->assertTrue($node->{'is' . $modifier}());
19 public function testNoModifiers() {
20 $node = new ClassConst(array(), 0);
22 $this->assertTrue($node->isPublic());
23 $this->assertFalse($node->isProtected());
24 $this->assertFalse($node->isPrivate());
25 $this->assertFalse($node->isStatic());
28 public function provideModifiers() {