PhpBench\Tests\Unit\Benchmark\Remote\ReflectionHierarchyTest::testHasStaticMethod PHP Method

testHasStaticMethod() public method

It can determine if a method is static.
public testHasStaticMethod ( )
    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'));
    }