%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/vendor/ddeboer/data-import/tests/Step/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/vendor/ddeboer/data-import/tests/Step/MappingStepTest.php

<?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);
    }
}

Zerion Mini Shell 1.0