'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()); } }