Converter\MappingConverterTest::convertWithRemoveOptionDoesNotRemoveSource PHP Method

convertWithRemoveOptionDoesNotRemoveSource() public method

    public function convertWithRemoveOptionDoesNotRemoveSource()
    {
        $this->converter->addMapping(['foo'], ['bar'], false);
        $result = $this->converter->convert(['foo' => 'foobar']);
        $this->assertCount(2, $result);
        $this->assertSame('foobar', $result['foo']);
        $this->assertSame('foobar', $result['bar']);
    }