Ejemplo n.º 1
0
 public function testIsAbstract()
 {
     $class = new Class_('Foo', array('type' => Class_::MODIFIER_ABSTRACT));
     $this->assertTrue($class->isAbstract());
     $class = new Class_('Foo');
     $this->assertFalse($class->isAbstract());
 }
Ejemplo n.º 2
0
 public function testDeprecatedTypeNode()
 {
     $class = new Class_('Foo', array('type' => Class_::MODIFIER_ABSTRACT));
     $this->assertTrue($class->isAbstract());
     $this->assertSame(Class_::MODIFIER_ABSTRACT, $class->flags);
     $this->assertSame(Class_::MODIFIER_ABSTRACT, $class->type);
 }