Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Apr 11, 2024
1 parent 4ee9b53 commit c9cc180
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Database/QueryDurationThresholdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ class QueryDurationThresholdTest extends TestCase
*/
protected $now;

protected function tearDown(): void
{
Carbon::setTestNow(null);

parent::tearDown();
}

public function testItCanHandleReachingADurationThresholdInTheDb()
{
$connection = new Connection(new PDO('sqlite::memory:'));
Expand Down Expand Up @@ -66,8 +73,6 @@ public function testItIsOnlyCalledOnceWhenGivenDateTime()
$connection->logQuery('xxxx', [], 1);

$this->assertSame(1, $called);

Carbon::setTestNow(null);
}

public function testItCanSpecifyMultipleHandlersWithTheSameIntervals()
Expand Down

0 comments on commit c9cc180

Please sign in to comment.