Converter\MappingConverterTest::convertSetsItemInEmptyArrayIfFromIsEmpty PHP Method

convertSetsItemInEmptyArrayIfFromIsEmpty() public method

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