We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7e1ad commit cb10ed0Copy full SHA for cb10ed0
test/AnalyticsTest.php
@@ -58,9 +58,14 @@ public function testExceptionIfTimeOlderThanOffsetLimit()
58
{
59
$this->prepareSituation();
60
61
- $this->expectException(GA4Exception::class);
62
-
63
- $this->analytics->setTimestamp(strtotime('-1 week'));
+ try {
+ $this->analytics->setTimestamp(strtotime('-1 week'));
+ $this->assertTrue(false, "Did not receive correct Exception");
64
+ } catch (GA4Exception $e) {
65
+ $this->assertTrue(true);
66
+ } catch (Exception $e) {
67
68
+ }
69
}
70
71
public function testItem()
0 commit comments