ConverterStepTest.php 478 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Ddeboer\DataImport\Tests\Step;
  3. use Ddeboer\DataImport\Step\ConverterStep;
  4. class ConverterStepTest extends \PHPUnit_Framework_TestCase
  5. {
  6. private $step;
  7. protected function setUp()
  8. {
  9. $this->step = new ConverterStep();
  10. }
  11. public function testProcess()
  12. {
  13. $this->step->add(function() { return ['bar']; });
  14. $data = ['foo'];
  15. $this->step->process($data);
  16. $this->assertEquals(['bar'], $data);
  17. }
  18. }