public function testIsAbstract() { $class = new Class_('Foo', array('type' => Class_::MODIFIER_ABSTRACT)); $this->assertTrue($class->isAbstract()); $class = new Class_('Foo'); $this->assertFalse($class->isAbstract()); }
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); }