PhpBench\Tests\Unit\Benchmark\RunnerContextTest::testOverride PHP Method

testOverride() public method

Defaults should be ignored if explicit values are set in the context.
public testOverride ( )
    public function testOverride()
    {
        $context = new RunnerContext(__DIR__, ['iterations' => [20], 'revolutions' => [30], 'retry_threshold' => 40]);
        $this->assertEquals([20], $context->getIterations([10]));
        $this->assertEquals([30], $context->getRevolutions([10]));
        $this->assertEquals(40, $context->getRetryThreshold(10));
    }