Exemplo n.º 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());
 }
Exemplo n.º 2
0
 public function process()
 {
     echo json_pretty($this->_message->getData());
     return true;
 }
Exemplo n.º 3
0
    public function testJsonPretty()
    {
        $this->assertEquals('{
    "x": "y"
}', json_pretty(["x" => "y"]));
    }