Skip to content

Commit c9cc180

Browse files
committed
wip
1 parent 4ee9b53 commit c9cc180

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/Database/QueryDurationThresholdTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ class QueryDurationThresholdTest extends TestCase
1717
*/
1818
protected $now;
1919

20+
protected function tearDown(): void
21+
{
22+
Carbon::setTestNow(null);
23+
24+
parent::tearDown();
25+
}
26+
2027
public function testItCanHandleReachingADurationThresholdInTheDb()
2128
{
2229
$connection = new Connection(new PDO('sqlite::memory:'));
@@ -66,8 +73,6 @@ public function testItIsOnlyCalledOnceWhenGivenDateTime()
6673
$connection->logQuery('xxxx', [], 1);
6774

6875
$this->assertSame(1, $called);
69-
70-
Carbon::setTestNow(null);
7176
}
7277

7378
public function testItCanSpecifyMultipleHandlersWithTheSameIntervals()

0 commit comments

Comments
 (0)