PhpBench\Tests\Unit\Model\ResultCollectionTest::testGetMetricOrDefault PHP Method

testGetMetricOrDefault() public method

It should return a default value when using getMetricOrDefault when the class has not been set.
    public function testGetMetricOrDefault()
    {
        $this->collection->setResult($this->timeResult);
        $this->assertEquals(100, $this->collection->getMetricOrDefault('UnknownClass', 'barbar', 100));
    }