step = new ConverterStep(); } public function testProcess() { $this->step->add(function() { return ['bar']; }); $data = ['foo']; $this->step->process($data); $this->assertEquals(['bar'], $data); } }