updated plugin W3 Total Cache
version 2.3.3
This commit is contained in:
30
wp-content/plugins/w3-total-cache/vendor/guzzlehttp/guzzle/tests/TransferStatsTest.php
vendored
Normal file
30
wp-content/plugins/w3-total-cache/vendor/guzzlehttp/guzzle/tests/TransferStatsTest.php
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace GuzzleHttp\Tests;
|
||||
|
||||
use GuzzleHttp\Psr7;
|
||||
use GuzzleHttp\TransferStats;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class TransferStatsTest extends TestCase
|
||||
{
|
||||
public function testHasData()
|
||||
{
|
||||
$request = new Psr7\Request('GET', 'http://foo.com');
|
||||
$response = new Psr7\Response();
|
||||
$stats = new TransferStats(
|
||||
$request,
|
||||
$response,
|
||||
10.5,
|
||||
null,
|
||||
['foo' => 'bar']
|
||||
);
|
||||
self::assertSame($request, $stats->getRequest());
|
||||
self::assertSame($response, $stats->getResponse());
|
||||
self::assertTrue($stats->hasResponse());
|
||||
self::assertSame(['foo' => 'bar'], $stats->getHandlerStats());
|
||||
self::assertSame('bar', $stats->getHandlerStat('foo'));
|
||||
self::assertSame($request->getUri(), $stats->getEffectiveUri());
|
||||
self::assertEquals(10.5, $stats->getTransferTime());
|
||||
self::assertNull($stats->getHandlerErrorData());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user