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

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

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