Skip to content

Commit

Permalink
test presence of appconnect_time key in curl stats array
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Apr 15, 2019
1 parent d808f79 commit 40aa8b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Handler/CurlFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ public function testInvokesOnStatsOnSuccess()
(string) $gotStats->getRequest()->getUri()
);
$this->assertGreaterThan(0, $gotStats->getTransferTime());
$this->assertArrayHasKey('appconnect_time', $gotStats->getHandlerStats());
}

public function testInvokesOnStatsOnError()
Expand All @@ -711,6 +712,7 @@ public function testInvokesOnStatsOnError()
);
$this->assertInternalType('float', $gotStats->getTransferTime());
$this->assertInternalType('int', $gotStats->getHandlerErrorData());
$this->assertArrayHasKey('appconnect_time', $gotStats->getHandlerStats());
}

public function testRewindsBodyIfPossible()
Expand Down

0 comments on commit 40aa8b1

Please sign in to comment.