Skip to content

Commit

Permalink
Merge pull request #329 from GrahamCampbell/patch-1
Browse files Browse the repository at this point in the history
Fixed `testTotalTime`
  • Loading branch information
gregurco committed May 23, 2023
2 parents 53d7f8e + d7c1238 commit b82ef12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/DataCollector/HttpDataCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,13 @@ public function testErrorCount()
public function testTotalTime()
{
$collector = new HttpDataCollector([$this->logger], 0);
$this->assertEquals(0, $collector->getTotalTime());
$this->assertEqualsWithDelta(0, $collector->getTotalTime(), 0.000001);

$collector->addTotalTime(3.14);
$this->assertEquals(3.14, $collector->getTotalTime());
$this->assertEqualsWithDelta(3.14, $collector->getTotalTime(), 0.000001);

$collector->addTotalTime(2.17);
$this->assertEquals(5.31, $collector->getTotalTime());
$this->assertEqualsWithDelta(5.31, $collector->getTotalTime(), 0.000001);
}

/**
Expand Down

0 comments on commit b82ef12

Please sign in to comment.