1234567891011121314151617181920212223242526 |
- <?php
- namespace Ddeboer\DataImport\Tests\Step;
- use Ddeboer\DataImport\Step\MappingStep;
- class MappingStepTest extends \PHPUnit_Framework_TestCase
- {
- protected function setUp()
- {
- $this->filter = new MappingStep();
- }
- public function testProcess()
- {
- $this->filter->map('[foo]', '[bar]');
- $data = [
- 'foo' => '1',
- ];
- $this->filter->process($data);
- $this->assertEquals(['bar' => '1'], $data);
- }
- }
|