@@ -1451,46 +1451,6 @@ public function testGetStream()
14511451 $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.1-alpha.1 ' , $ userAgent );
14521452 }
14531453
1454- public function testGetStream ()
1455- {
1456- // Arrange
1457- $ this ->setupOTWithMocks ([[
1458- 'code ' => 200 ,
1459- 'headers ' => [
1460- 'Content-Type ' => 'application/json '
1461- ],
1462- 'path ' => '/v2/project/APIKEY/session/SESSIONID/stream/STREAMID/get '
1463- ]]);
1464-
1465- $ sessionId = 'SESSIONID ' ;
1466- $ streamId = '8b732909-0a06-46a2-8ea8-074e64d43422 ' ;
1467-
1468- // Act
1469- $ streamData = $ this ->opentok ->getStream ($ sessionId , $ streamId );
1470- // Assert
1471- $ this ->assertCount (1 , $ this ->historyContainer );
1472-
1473- $ request = $ this ->historyContainer [0 ]['request ' ];
1474- $ this ->assertEquals ('GET ' , strtoupper ($ request ->getMethod ()));
1475- $ this ->assertEquals ('/v2/project/ ' .$ this ->API_KEY .'/session/ ' .$ sessionId .'/stream/ ' .$ streamId , $ request ->getUri ()->getPath ());
1476- $ this ->assertEquals ('api.opentok.com ' , $ request ->getUri ()->getHost ());
1477- $ this ->assertEquals ('https ' , $ request ->getUri ()->getScheme ());
1478-
1479- $ authString = $ request ->getHeaderLine ('X-OPENTOK-AUTH ' );
1480- $ this ->assertEquals (true , TestHelpers::validateOpenTokAuthHeader ($ this ->API_KEY , $ this ->API_SECRET , $ authString ));
1481-
1482- $ this ->assertInstanceOf ('OpenTok\Stream ' , $ streamData );
1483- $ this ->assertNotNull ($ streamData ->id );
1484- $ this ->assertNotNull ($ streamData ->name );
1485- $ this ->assertNotNull ($ streamData ->videoType );
1486- $ this ->assertNotNull ($ streamData ->layoutClassList );
1487-
1488- $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
1489- $ this ->assertNotEmpty ($ userAgent );
1490- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1491- }
1492-
1493-
14941454 public function testSipCall ()
14951455 {
14961456 // Arrange
0 commit comments