private function validateSubject(ReflectionHierarchy $benchmarkReflection, SubjectMetadata $subject)
{
foreach (['getBeforeMethods' => 'before', 'getAfterMethods' => 'after'] as $methodName => $context) {
foreach ($subject->{$methodName}() as $method) {
$this->validateMethodExists($context, $benchmarkReflection, $method);
}
}
}