public function addMapping($from, $to, $remove = true) { $this->mappings[] = ['from' => $from, 'to' => $to, 'remove' => $remove]; return $this; }
/** * @test * @covers Plum\Plum\Converter\MappingConverter::convert() */ public function convertReturnsItemIfFromAndToAreEmpty() { $this->converter->addMapping('', ''); $this->assertSame('foobar', $this->converter->convert('foobar')); }