Exemple #1
0
 /**
  * @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());
 }
Exemple #2
0
 public function process()
 {
     echo json_pretty($this->_message->getData());
     return true;
 }
    public function testJsonPretty()
    {
        $this->assertEquals('{
    "x": "y"
}', json_pretty(["x" => "y"]));
    }