PhpBench\Tests\Unit\Model\SuiteCollectionTest::testMergeCollection PHP Метод

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

It should merge another colleciton into itself.
public testMergeCollection ( )
    public function testMergeCollection()
    {
        $collection = new SuiteCollection([$this->suite1->reveal()]);
        $newCollection = new SuiteCollection([$this->suite2->reveal(), $this->suite3->reveal()]);
        $collection->mergeCollection($newCollection);
        $this->assertEquals([$this->suite1->reveal(), $this->suite2->reveal(), $this->suite3->reveal()], $collection->getSuites());
    }