public function testDataInReport() { $exception = new Exception('testing'); $report = new common_report_Report(common_report_Report::TYPE_INFO, 'test message2', $exception); $this->assertFalse($report->hasChildren()); $this->assertEquals('test message2', (string) $report); $this->assertEquals(common_report_Report::TYPE_INFO, $report->getType()); foreach ($report as $child) { $this->fail('Should not contain children'); } $this->assertSame($exception, $report->getData()); }