Skip to content

Commit 47d4599

Browse files
author
Alex Westergaard
committed
Remember to reset static stack of exceptions
1 parent 9039203 commit 47d4599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Unit/LegacyAnalyticsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use AlexWestergaard\PhpGa4\UserProperty;
66
use AlexWestergaard\PhpGa4\Item;
7-
use AlexWestergaard\PhpGa4\Exception\Ga4IOException;
87
use AlexWestergaard\PhpGa4\Exception\Ga4Exception;
98
use AlexWestergaard\PhpGa4\Event;
109
use AlexWestergaard\PhpGa4\Analytics;
@@ -17,6 +16,7 @@ class LegacyAnalyticsTest extends \PHPUnit\Framework\TestCase
1716

1817
protected function setUp(): void
1918
{
19+
Ga4Exception::resetStack();
2020
parent::setUp();
2121

2222
$this->prefill = [
@@ -149,7 +149,7 @@ public function testPartialRefundNoItemsThrows()
149149
{
150150
$refund = Event\Refund::new()->setTransactionId(1);
151151

152-
$this->expectException(Ga4IOException::class);
152+
$this->expectException(Ga4Exception::class);
153153

154154
$this->analytics->addEvent($refund);
155155
}

0 commit comments

Comments
 (0)