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

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

It can have results added in the constructor.
public testAddConstructor ( )
    public function testAddConstructor()
    {
        $collection = new ResultCollection([$expected = new TimeResult(10)]);
        $result = $collection->getResult(TimeResult::class);
        $this->assertSame($expected, $result);
    }