public function testSleep()
{
$subject = new SubjectMetadata($this->benchmark->reveal(), 'name', 0);
$subject->setSleep(50);
$this->benchmark->getSubjects()->willReturn([$subject]);
TestUtil::configureBenchmarkMetadata($this->benchmark);
$test = $this;
$this->executor->execute(Argument::type('PhpBench\\Benchmark\\Metadata\\SubjectMetadata'), Argument::type('PhpBench\\Model\\Iteration'), $this->executorConfig)->will(function ($args) use($test) {
$iteration = $args[1];
$test->assertEquals(50, $iteration->getVariant()->getSubject()->getSleep());
$callback = $test->loadIterationResultCallback();
$callback($args);
});
$suite = $this->runner->run(new RunnerContext(__DIR__));
$this->assertNoErrors($suite);
}