@@ -127,7 +127,7 @@ public function testCreatesDefaultSession()
127127 // TODO: test the dynamically built User Agent string
128128 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
129129 $ this ->assertNotEmpty ($ userAgent );
130- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
130+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
131131
132132 $ p2p_preference = $ this ->getPostField ($ request , 'p2p.preference ' );
133133 $ this ->assertEquals ('enabled ' , $ p2p_preference );
@@ -187,7 +187,7 @@ public function testCreatesMediaRoutedAndLocationSession()
187187 // TODO: test the dynamically built User Agent string
188188 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
189189 $ this ->assertNotEmpty ($ userAgent );
190- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
190+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
191191
192192 $ location = $ this ->getPostField ($ request , 'location ' );
193193 $ this ->assertEquals ('12.34.56.78 ' , $ location );
@@ -235,7 +235,7 @@ public function testCreatesMediaRelayedSession()
235235 // TODO: test the dynamically built User Agent string
236236 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
237237 $ this ->assertNotEmpty ($ userAgent );
238- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
238+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
239239
240240 $ p2p_preference = $ this ->getPostField ($ request , 'p2p.preference ' );
241241 $ this ->assertEquals ('enabled ' , $ p2p_preference );
@@ -280,7 +280,7 @@ public function testCreatesAutoArchivedSession()
280280 // TODO: test the dynamically built User Agent string
281281 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
282282 $ this ->assertNotEmpty ($ userAgent );
283- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
283+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
284284
285285 $ archiveMode = $ this ->getPostField ($ request , 'archiveMode ' );
286286 $ this ->assertEquals ('always ' , $ archiveMode );
@@ -486,7 +486,7 @@ public function testStartsArchive()
486486 // TODO: test the dynamically built User Agent string
487487 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
488488 $ this ->assertNotEmpty ($ userAgent );
489- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
489+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
490490
491491 $ this ->assertInstanceOf ('OpenTok\Archive ' , $ archive );
492492 $ this ->assertEquals (0 , $ archive ->duration );
@@ -536,7 +536,7 @@ public function testStartsArchiveNamed()
536536 // TODO: test the dynamically built User Agent string
537537 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
538538 $ this ->assertNotEmpty ($ userAgent );
539- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
539+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
540540
541541 $ body = json_decode ($ request ->getBody ());
542542 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -584,7 +584,7 @@ public function testStartsArchiveNamedDeprecated()
584584 // TODO: test the dynamically built User Agent string
585585 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
586586 $ this ->assertNotEmpty ($ userAgent );
587- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
587+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
588588
589589 $ body = json_decode ($ request ->getBody ());
590590 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -631,7 +631,7 @@ public function testStartsArchiveAudioOnly()
631631 // TODO: test the dynamically built User Agent string
632632 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
633633 $ this ->assertNotEmpty ($ userAgent );
634- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
634+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
635635
636636 $ body = json_decode ($ request ->getBody ());
637637 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -681,7 +681,7 @@ public function testStartsArchiveIndividualOutput()
681681 // TODO: test the dynamically built User Agent string
682682 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
683683 $ this ->assertNotEmpty ($ userAgent );
684- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
684+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
685685
686686 $ body = json_decode ($ request ->getBody ());
687687 $ this ->assertEquals ($ sessionId , $ body ->sessionId );
@@ -726,7 +726,7 @@ public function testStopsArchive()
726726 // TODO: test the dynamically built User Agent string
727727 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
728728 $ this ->assertNotEmpty ($ userAgent );
729- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
729+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
730730
731731 $ this ->assertInstanceOf ('OpenTok\Archive ' , $ archive );
732732 // TODO: test the properties of the actual archive object
@@ -765,7 +765,7 @@ public function testGetsArchive()
765765 // TODO: test the dynamically built User Agent string
766766 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
767767 $ this ->assertNotEmpty ($ userAgent );
768- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
768+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
769769
770770 $ this ->assertInstanceOf ('OpenTok\Archive ' , $ archive );
771771 // TODO: test the properties of the actual archive object
@@ -802,7 +802,7 @@ public function testDeletesArchive()
802802 // TODO: test the dynamically built User Agent string
803803 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
804804 $ this ->assertNotEmpty ($ userAgent );
805- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
805+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
806806
807807 $ this ->assertTrue ($ success );
808808 // TODO: test the properties of the actual archive object
@@ -837,7 +837,7 @@ public function testListsArchives()
837837 // TODO: test the dynamically built User Agent string
838838 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
839839 $ this ->assertNotEmpty ($ userAgent );
840- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
840+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
841841
842842 $ this ->assertInstanceOf ('OpenTok\ArchiveList ' , $ archiveList );
843843 // TODO: test the properties of the actual archiveList object and its contained archive
@@ -873,7 +873,7 @@ public function testListsArchivesWithOffsetAndCount()
873873 // TODO: test the dynamically built User Agent string
874874 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
875875 $ this ->assertNotEmpty ($ userAgent );
876- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
876+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
877877
878878 $ this ->assertInstanceOf ('OpenTok\ArchiveList ' , $ archiveList );
879879 $ this ->assertEquals (1 , $ archiveList ->totalCount ());
@@ -958,7 +958,7 @@ public function testForceDisconnect()
958958 // TODO: test the dynamically built User Agent string
959959 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
960960 $ this ->assertNotEmpty ($ userAgent );
961- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
961+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
962962
963963 $ this ->assertTrue ($ success );
964964 }
@@ -1000,7 +1000,7 @@ public function testStartsBroadcast()
10001000 // TODO: test the dynamically built User Agent string
10011001 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
10021002 $ this ->assertNotEmpty ($ userAgent );
1003- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
1003+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
10041004
10051005 $ this ->assertInstanceOf ('OpenTok\Broadcast ' , $ broadcast );
10061006 $ this ->assertInternalType ('string ' , $ broadcast ->id );
@@ -1045,7 +1045,7 @@ public function testStopsBroadcast()
10451045 // TODO: test the dynamically built User Agent string
10461046 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
10471047 $ this ->assertNotEmpty ($ userAgent );
1048- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
1048+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
10491049
10501050 $ this ->assertInstanceOf ('OpenTok\Broadcast ' , $ broadcast );
10511051 $ this ->assertTrue ($ broadcast ->isStopped );
@@ -1082,7 +1082,7 @@ public function testGetsBroadcast()
10821082 // TODO: test the dynamically built User Agent string
10831083 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
10841084 $ this ->assertNotEmpty ($ userAgent );
1085- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
1085+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
10861086
10871087 $ this ->assertInstanceOf ('OpenTok\Broadcast ' , $ broadcast );
10881088 }
@@ -1126,7 +1126,7 @@ public function testUpdatesBroadcastLayoutWithPredefined()
11261126 // TODO: test the dynamically built User Agent string
11271127 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
11281128 $ this ->assertNotEmpty ($ userAgent );
1129- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
1129+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
11301130 }
11311131
11321132 public function testUpdatesBroadcastLayoutWithCustom ()
@@ -1172,7 +1172,7 @@ public function testUpdatesBroadcastLayoutWithCustom()
11721172 // TODO: test the dynamically built User Agent string
11731173 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
11741174 $ this ->assertNotEmpty ($ userAgent );
1175- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
1175+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
11761176 }
11771177
11781178 public function testUpdatesStreamLayoutClassList ()
@@ -1217,7 +1217,7 @@ public function testUpdatesStreamLayoutClassList()
12171217 // TODO: test the dynamically built User Agent string
12181218 $ userAgent = $ request ->getHeaderLine ('User-Agent ' );
12191219 $ this ->assertNotEmpty ($ userAgent );
1220- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/3.1 .1 ' , $ userAgent );
1220+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/4.0.0-alpha .1 ' , $ userAgent );
12211221 }
12221222
12231223
0 commit comments