public function testHasStaticMethod()
{
$this->reflection1->methods['foobar'] = new ReflectionMethod();
$this->reflection1->methods['foobar']->isStatic = true;
$this->hierarchy->addReflectionClass($this->reflection1);
$this->hierarchy->addReflectionClass($this->reflection2);
$this->assertTrue($this->hierarchy->hasStaticMethod('foobar'));
$this->assertFalse($this->hierarchy->hasStaticMethod('barfoo'));
$this->reflection1->methods['barfoo'] = new ReflectionMethod();
$this->reflection1->methods['barfoo']->isStatic = true;
$this->assertTrue($this->hierarchy->hasStaticMethod('barfoo'));
}