@@ -126,7 +126,7 @@ public function testCreatesDefaultSession()
126126 // TODO: test the dynamically built User Agent string
127127 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
128128 $ this ->assertNotEmpty ($ userAgent );
129- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
129+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
130130
131131 $ p2p_preference = $ this ->getPostField ($ request , 'p2p.preference ' );
132132 $ this ->assertEquals ('enabled ' , $ p2p_preference );
@@ -186,7 +186,7 @@ public function testCreatesMediaRoutedAndLocationSession()
186186 // TODO: test the dynamically built User Agent string
187187 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
188188 $ this ->assertNotEmpty ($ userAgent );
189- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
189+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
190190
191191 $ location = $ this ->getPostField ($ request , 'location ' );
192192 $ this ->assertEquals ('12.34.56.78 ' , $ location );
@@ -234,7 +234,7 @@ public function testCreatesMediaRelayedSession()
234234 // TODO: test the dynamically built User Agent string
235235 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
236236 $ this ->assertNotEmpty ($ userAgent );
237- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
237+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
238238
239239 $ p2p_preference = $ this ->getPostField ($ request , 'p2p.preference ' );
240240 $ this ->assertEquals ('enabled ' , $ p2p_preference );
@@ -279,7 +279,7 @@ public function testCreatesAutoArchivedSession()
279279 // TODO: test the dynamically built User Agent string
280280 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
281281 $ this ->assertNotEmpty ($ userAgent );
282- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
282+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
283283
284284 $ archiveMode = $ this ->getPostField ($ request , 'archiveMode ' );
285285 $ this ->assertEquals ('always ' , $ archiveMode );
@@ -485,7 +485,7 @@ public function testStartsArchive()
485485 // TODO: test the dynamically built User Agent string
486486 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
487487 $ this ->assertNotEmpty ($ userAgent );
488- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
488+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
489489
490490 $ this ->assertInstanceOf ('OpenTok\Archive ' , $ archive );
491491 $ this ->assertEquals (0 , $ archive ->duration );
@@ -535,7 +535,7 @@ public function testStartsArchiveNamed()
535535 // TODO: test the dynamically built User Agent string
536536 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
537537 $ this ->assertNotEmpty ($ userAgent );
538- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
538+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
539539
540540 $ body = json_decode ($ request ->getBody ());
541541 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -583,7 +583,7 @@ public function testStartsArchiveNamedDeprecated()
583583 // TODO: test the dynamically built User Agent string
584584 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
585585 $ this ->assertNotEmpty ($ userAgent );
586- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
586+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
587587
588588 $ body = json_decode ($ request ->getBody ());
589589 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -630,7 +630,7 @@ public function testStartsArchiveAudioOnly()
630630 // TODO: test the dynamically built User Agent string
631631 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
632632 $ this ->assertNotEmpty ($ userAgent );
633- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
633+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
634634
635635 $ body = json_decode ($ request ->getBody ());
636636 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -680,7 +680,7 @@ public function testStartsArchiveIndividualOutput()
680680 // TODO: test the dynamically built User Agent string
681681 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
682682 $ this ->assertNotEmpty ($ userAgent );
683- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
683+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
684684
685685 $ body = json_decode ($ request ->getBody ());
686686 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -729,7 +729,7 @@ public function testStartsArchiveResolutionSD()
729729 // TODO: test the dynamically built User Agent string
730730 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
731731 $ this ->assertNotEmpty ($ userAgent );
732- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
732+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
733733
734734 $ body = json_decode ($ request ->getBody ());
735735 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -777,7 +777,7 @@ public function testStartsArchiveResolutionHD()
777777 // TODO: test the dynamically built User Agent string
778778 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
779779 $ this ->assertNotEmpty ($ userAgent );
780- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
780+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
781781
782782 $ body = json_decode ($ request ->getBody ());
783783 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -821,7 +821,7 @@ public function testStopsArchive()
821821 // TODO: test the dynamically built User Agent string
822822 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
823823 $ this ->assertNotEmpty ($ userAgent );
824- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
824+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
825825
826826 $ this ->assertInstanceOf ('OpenTok\Archive ' , $ archive );
827827 // TODO: test the properties of the actual archive object
@@ -860,7 +860,7 @@ public function testGetsArchive()
860860 // TODO: test the dynamically built User Agent string
861861 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
862862 $ this ->assertNotEmpty ($ userAgent );
863- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
863+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
864864
865865 $ this ->assertInstanceOf ('OpenTok\Archive ' , $ archive );
866866 // TODO: test the properties of the actual archive object
@@ -897,7 +897,7 @@ public function testDeletesArchive()
897897 // TODO: test the dynamically built User Agent string
898898 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
899899 $ this ->assertNotEmpty ($ userAgent );
900- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
900+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
901901
902902 $ this ->assertTrue ($ success );
903903 // TODO: test the properties of the actual archive object
@@ -932,7 +932,7 @@ public function testListsArchives()
932932 // TODO: test the dynamically built User Agent string
933933 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
934934 $ this ->assertNotEmpty ($ userAgent );
935- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
935+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
936936
937937 $ this ->assertInstanceOf ('OpenTok\ArchiveList ' , $ archiveList );
938938 // TODO: test the properties of the actual archiveList object and its contained archive
@@ -968,7 +968,7 @@ public function testListsArchivesWithOffsetAndCount()
968968 // TODO: test the dynamically built User Agent string
969969 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
970970 $ this ->assertNotEmpty ($ userAgent );
971- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
971+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
972972
973973 $ this ->assertInstanceOf ('OpenTok\ArchiveList ' , $ archiveList );
974974 $ this ->assertEquals (1 , $ archiveList ->totalCount ());
@@ -1009,7 +1009,7 @@ public function testListsArchivesWithSessionId()
10091009 // TODO: test the dynamically built User Agent string
10101010 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
10111011 $ this ->assertNotEmpty ($ userAgent );
1012- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1012+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
10131013
10141014 $ this ->assertInstanceOf ('OpenTok\ArchiveList ' , $ archiveList );
10151015 $ this ->assertEquals (2 , $ archiveList ->totalCount ());
@@ -1095,7 +1095,7 @@ public function testForceDisconnect()
10951095 // TODO: test the dynamically built User Agent string
10961096 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
10971097 $ this ->assertNotEmpty ($ userAgent );
1098- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1098+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
10991099
11001100 $ this ->assertTrue ($ success );
11011101 }
@@ -1156,7 +1156,7 @@ public function testStartsBroadcast()
11561156 // TODO: test the dynamically built User Agent string
11571157 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
11581158 $ this ->assertNotEmpty ($ userAgent );
1159- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1159+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
11601160
11611161 $ this ->assertInstanceOf ('OpenTok\Broadcast ' , $ broadcast );
11621162 $ this ->assertInternalType ('string ' , $ broadcast ->id );
@@ -1201,7 +1201,7 @@ public function testStopsBroadcast()
12011201 // TODO: test the dynamically built User Agent string
12021202 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
12031203 $ this ->assertNotEmpty ($ userAgent );
1204- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1204+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
12051205
12061206 $ this ->assertInstanceOf ('OpenTok\Broadcast ' , $ broadcast );
12071207 $ this ->assertTrue ($ broadcast ->isStopped );
@@ -1238,7 +1238,7 @@ public function testGetsBroadcast()
12381238 // TODO: test the dynamically built User Agent string
12391239 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
12401240 $ this ->assertNotEmpty ($ userAgent );
1241- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1241+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
12421242
12431243 $ this ->assertInstanceOf ('OpenTok\Broadcast ' , $ broadcast );
12441244 }
@@ -1282,7 +1282,7 @@ public function testUpdatesBroadcastLayoutWithPredefined()
12821282 // TODO: test the dynamically built User Agent string
12831283 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
12841284 $ this ->assertNotEmpty ($ userAgent );
1285- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1285+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
12861286 }
12871287
12881288 public function testUpdatesBroadcastLayoutWithCustom ()
@@ -1328,7 +1328,7 @@ public function testUpdatesBroadcastLayoutWithCustom()
13281328 // TODO: test the dynamically built User Agent string
13291329 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
13301330 $ this ->assertNotEmpty ($ userAgent );
1331- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1331+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
13321332 }
13331333
13341334 public function testUpdatesStreamLayoutClassList ()
@@ -1373,7 +1373,7 @@ public function testUpdatesStreamLayoutClassList()
13731373 // TODO: test the dynamically built User Agent string
13741374 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
13751375 $ this ->assertNotEmpty ($ userAgent );
1376- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1376+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
13771377 }
13781378
13791379 public function testGetStream ()
@@ -1412,7 +1412,7 @@ public function testGetStream()
14121412
14131413 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
14141414 $ this ->assertNotEmpty ($ userAgent );
1415- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1415+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
14161416 }
14171417
14181418
@@ -1581,7 +1581,7 @@ public function testSignalData()
15811581 // TODO: test the dynamically built User Agent string
15821582 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
15831583 $ this ->assertNotEmpty ($ userAgent );
1584- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1584+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
15851585
15861586 $ body = json_decode ($ request ->getBody ());
15871587 $ this ->assertEquals ('apple ' , $ body ->data );
@@ -1623,7 +1623,7 @@ public function testSignalWithConnectionId()
16231623 // TODO: test the dynamically built User Agent string
16241624 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
16251625 $ this ->assertNotEmpty ($ userAgent );
1626- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1626+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
16271627
16281628 $ body = json_decode ($ request ->getBody ());
16291629 $ this ->assertEquals ('random message ' , $ body ->data );
@@ -1734,7 +1734,7 @@ public function testListStreams()
17341734 // TODO: test the dynamically built User Agent string
17351735 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
17361736 $ this ->assertNotEmpty ($ userAgent );
1737- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.1.2-alpha.1 ' , $ userAgent );
1737+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.2.0 ' , $ userAgent );
17381738
17391739 $ this ->assertInstanceOf ('OpenTok\StreamList ' , $ streamList );
17401740
0 commit comments