public function testExecuteAfter()
{
$this->metadata->getBeforeMethods()->willReturn([]);
$this->metadata->getAfterMethods()->willReturn(['afterMethod']);
$this->metadata->getName()->willReturn('doSomething');
$this->variant->getParameterSet()->willReturn(new ParameterSet());
$this->variant->getRevolutions()->willReturn(1);
$this->variant->getWarmup()->willReturn(0);
$this->iteration->setResult(Argument::type(TimeResult::class))->shouldBeCalled();
$this->iteration->setResult(Argument::type(MemoryResult::class))->shouldBeCalled();
$this->executor->execute($this->metadata->reveal(), $this->iteration->reveal(), new Config('test', []));
$this->assertTrue(file_exists($this->afterMethodFile));
}