PhpBench\Tests\Unit\Benchmark\Metadata\FactoryTest::testValidationAfterMethods PHP Method

testValidationAfterMethods() public method

It should throw an exception if an after method does not exist.
    public function testValidationAfterMethods()
    {
        $this->hierarchy->isEmpty()->willReturn(false);
        TestUtil::configureBenchmarkMetadata($this->metadata, []);
        $this->metadata->getSubjects()->willReturn([$this->subjectMetadata->reveal()]);
        TestUtil::configureSubjectMetadata($this->subjectMetadata, ['afterMethods' => ['afterMe']]);
        $this->hierarchy->hasMethod('afterMe')->willReturn(false);
        $this->factory->getMetadataForFile(self::FNAME);
    }