public function testApiIsRequestSupported_ReturnsBoolForDifferentVersions()
{
$version = $this->createVersion();
$protocols = [5, 6, 12, 13, 15];
$expects = [false, true, true, false, false];
foreach ($protocols as $index => $protocol) {
$expect = $expects[$index];
$req = $this->getMock(HttpRequestInterface::class, [], [], '', false);
$req->expects($this->once())->method('getHeaderLine')->with('Sec-WebSocket-Version')->will($this->returnValue($protocol));
$this->assertSame($expect, $version->isRequestSupported($req));
}
}