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 4ee9b53 commit c9cc180Copy full SHA for c9cc180
tests/Database/QueryDurationThresholdTest.php
@@ -17,6 +17,13 @@ class QueryDurationThresholdTest extends TestCase
17
*/
18
protected $now;
19
20
+ protected function tearDown(): void
21
+ {
22
+ Carbon::setTestNow(null);
23
+
24
+ parent::tearDown();
25
+ }
26
27
public function testItCanHandleReachingADurationThresholdInTheDb()
28
{
29
$connection = new Connection(new PDO('sqlite::memory:'));
@@ -66,8 +73,6 @@ public function testItIsOnlyCalledOnceWhenGivenDateTime()
66
73
$connection->logQuery('xxxx', [], 1);
67
74
68
75
$this->assertSame(1, $called);
69
-
70
- Carbon::setTestNow(null);
71
76
}
72
77
78
public function testItCanSpecifyMultipleHandlersWithTheSameIntervals()
0 commit comments