public function testLoadSubjectOverride()
{
$reflection = new ReflectionClass();
$reflection->class = 'Test';
$reflection->comment = <<<'EOT'
/**
* @BeforeMethods({"beforeOne", "beforeTwo"})
*/
EOT;
$hierarchy = new ReflectionHierarchy();
$hierarchy->addReflectionClass($reflection);
$method = new ReflectionMethod();
$method->reflectionClass = $reflection;
$method->class = 'Test';
$method->name = 'benchFoo';
$method->comment = <<<'EOT'
/**
* @BeforeMethods({"beforeFive"})
*/
EOT;
$reflection->methods[$method->name] = $method;
$metadata = $this->createDriver()->getMetadataForHierarchy($hierarchy);
$subjects = $metadata->getSubjects();
$this->assertCount(1, $subjects);
$metadata = reset($subjects);
$this->assertEquals(['beforeFive'], $metadata->getBeforeMethods());
}