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

testGetNamedMetric() public method

It should return a named metric.
public testGetNamedMetric ( )
    public function testGetNamedMetric()
    {
        $this->collection->setResult($this->timeResult);
        $this->assertEquals(1, $this->collection->getMetric(TimeResult::class, 'net'));
    }