PhpBench\Tests\Unit\Model\ResultCollectionTest::testNamedMetricDoesNotExist PHP Метод

testNamedMetricDoesNotExist() публичный Метод

It should throw an exception if the named metric does not exist.
    public function testNamedMetricDoesNotExist()
    {
        $this->collection->setResult($this->timeResult);
        $this->assertEquals(1, $this->collection->getMetric(TimeResult::class, 'foobar'));
    }