public function testHasMethod()
{
$this->reflection1->methods['foobar'] = true;
$this->hierarchy->addReflectionClass($this->reflection1);
$this->hierarchy->addReflectionClass($this->reflection2);
$this->assertTrue($this->hierarchy->hasMethod('foobar'));
$this->assertFalse($this->hierarchy->hasMethod('barfoo'));
$this->reflection2->methods['barfoo'] = true;
$this->assertTrue($this->hierarchy->hasMethod('barfoo'));
}