コード例 #1
0
 /**
  * @return \Environaut\Report\Report
  */
 protected function getDefaultReport()
 {
     $report = new Report();
     $result = new Result();
     $result->addSetting(new Setting('name', 'value'));
     $result->addSetting(new Setting('foo', 'bar'));
     $result->addSetting(new Setting('custom', true, 'group'));
     $result->setStatus(Result::SUCCESS);
     $report->addResult($result);
     return $report;
 }
コード例 #2
0
 protected function getMultiSettingReport()
 {
     $report = new Report();
     $result = new Result();
     $result->addSetting(new Setting('environment', 'testing-vagrant', 'core_settings'));
     $result->addSetting(new Setting('foo', 'FOOOO', 'core_settings'));
     $result->addSetting(new Setting('bar', 'BAAAR', 'core_settings'));
     $result->setStatus(Result::SUCCESS);
     $report->addResult($result);
     return $report;
 }