PhpBench\Tests\Unit\Report\Generator\Table\RowTest::testMerge PHP Method

testMerge() public method

It should merge a given array and return a new instance with the merged data.
public testMerge ( )
    public function testMerge()
    {
        $row = new Row(['bar' => 'bar']);
        $row->setFormatParams(['of' => 'fo']);
        $new = $row->merge(['foo' => 'foo']);
        $this->assertNotSame($row, $new);
        $this->assertEquals(['of' => 'fo'], $new->getFormatParams());
        $this->assertEquals(['bar' => 'bar', 'foo' => 'foo'], $new->getArrayCopy());
    }