Skip to content

Commit 353fa1c

Browse files
committed
DEBUG set $GLOBALS['debug'] = true for test
1 parent 9bf2740 commit 353fa1c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/ModelAggregateTest.php

+9-3
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,15 @@ public function testGroupSelectCondition2(): void
177177
10
178178
);
179179

180-
$this->assertSame([
181-
['client' => 'Vinny', 'client_id' => 1, 's' => 19.0, 'amount' => 19.0, 'double' => 38.0],
182-
], $aggregate->export());
180+
try {
181+
$GLOBALS['debug'] = true;
182+
183+
$this->assertSame([
184+
['client' => 'Vinny', 'client_id' => 1, 's' => 19.0, 'amount' => 19.0, 'double' => 38.0],
185+
], $aggregate->export());
186+
} finally {
187+
$GLOBALS['debug'] = false;
188+
}
183189
}
184190

185191
public function testGroupSelectCondition3(): void

0 commit comments

Comments
 (0)