예제 #1
0
 public function testStaticImplicitlyPublic()
 {
     $node = new Property(Class_::MODIFIER_STATIC, array());
     $this->assertTrue($node->isPublic());
     $this->assertFalse($node->isProtected());
     $this->assertFalse($node->isPrivate());
     $this->assertTrue($node->isStatic());
 }
예제 #2
0
 public function testNoModifiers()
 {
     $node = new Property(0, array());
     $this->assertTrue($node->isPublic());
     $this->assertFalse($node->isProtected());
     $this->assertFalse($node->isPrivate());
     $this->assertFalse($node->isStatic());
 }