/** * @return int */ public function execute() { $collection = new MapperDataCollection(new ProcessMessage()); $config = new Config(); $config->setData("mapper_class", get_class(new Campaign())); $configGroup = new ConfigGroup(); $configGroup->addConfig("process", $config); $collection->configure($configGroup); echo json_pretty($collection->getAttributes()); }
public function process() { echo json_pretty($this->_message->getData()); return true; }
public function testJsonPretty() { $this->assertEquals('{ "x": "y" }', json_pretty(["x" => "y"])); }