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

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

It should throw an exception if a before/after method does not exist on the benchmark.
    public function testValidationBeforeMethodsBenchmark()
    {
        $this->hierarchy->isEmpty()->willReturn(false);
        TestUtil::configureBenchmarkMetadata($this->metadata, ['beforeClassMethods' => ['beforeMe']]);
        $this->hierarchy->hasMethod('beforeMe')->willReturn(false);
        $this->hierarchy->hasStaticMethod('beforeMe')->willReturn(true);
        $this->factory->getMetadataForFile(self::FNAME);
    }