This commit is contained in:
Romain Neutron
2013-05-29 21:29:40 +02:00
parent 278eb3c2dc
commit 91185e6f3c
30 changed files with 65 additions and 102 deletions

View File

@@ -123,7 +123,7 @@ class questionReportTest extends PhraseanetPHPUnitAuthenticatedAbstract
else
$this->assertEquals(count($this->report->getDisplay()), count($conf));
if ( ! $groupby) {
if (! $groupby) {
foreach ($this->report->getDisplay() as $col => $colconf) {
$this->assertArrayHaskey($col, $conf);
$this->assertTrue(is_array($colconf));
@@ -145,8 +145,7 @@ class questionReportTest extends PhraseanetPHPUnitAuthenticatedAbstract
$i ++;
}
}
}
else {
} else {
$this->assertArrayHasKey($groupby, $this->report->getDisplay());
$this->assertArrayHasKey('nb', $this->report->getDisplay());
}
@@ -154,7 +153,7 @@ class questionReportTest extends PhraseanetPHPUnitAuthenticatedAbstract
public function reporttestResult($report, $conf, $groupby = false)
{
if ( ! $groupby) {
if (! $groupby) {
foreach ($report['result'] as $row) {
foreach ($conf as $key => $value) {