for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ddeboer\DataImport\Tests\Step;
use Ddeboer\DataImport\Step\ValueConverterStep;
class ValueConverterStepTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
$this->filter = new ValueConverterStep();
}
public function testProcess()
$this->filter->add('[foo]', function($v) { return 'barfoo'; });
$v
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$data = ['foo' => 'foobar'];
$this->filter->process($data);
$this->assertEquals(['foo' => 'barfoo'], $data);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.