filter = new ValueConverterStep(); } public function testProcess() { $this->filter->add('[foo]', function($v) { return 'barfoo'; }); $data = ['foo' => 'foobar']; $this->filter->process($data); $this->assertEquals(['foo' => 'barfoo'], $data); } }