filter = new MappingStep(); } public function testProcess() { $this->filter->map('[foo]', '[bar]'); $data = [ 'foo' => '1', ]; $this->filter->process($data); $this->assertEquals(['bar' => '1'], $data); } }