public function testHasMethods() { $this->assertFalse($this->class->hasMethods()); $this->class->addMethod(new Method('doSomething')); $this->assertTrue($this->class->hasMethods()); $this->class->removeMethod('doSomething'); $this->assertFalse($this->class->hasMethods()); }