PhpBench\Tests\Unit\Benchmark\Metadata\FactoryTest::testValidationBeforeMethodsBenchmarkIsStatic PHP Метод

testValidationBeforeMethodsBenchmarkIsStatic() публичный Метод

It should throw an exception if a before method IS static.
    public function testValidationBeforeMethodsBenchmarkIsStatic()
    {
        $this->hierarchy->isEmpty()->willReturn(false);
        $this->reflection->class = 'TestClass';
        TestUtil::configureBenchmarkMetadata($this->metadata, []);
        $this->metadata->getSubjects()->willReturn([$this->subjectMetadata->reveal()]);
        TestUtil::configureSubjectMetadata($this->subjectMetadata, ['beforeMethods' => ['beforeMe']]);
        $this->hierarchy->hasMethod('beforeMe')->willReturn(true);
        $this->hierarchy->hasStaticMethod('beforeMe')->willReturn(true);
        $this->factory->getMetadataForFile(self::FNAME);
    }