Skip to content

Commit 1bf0c0f

Browse files
committed
Version bump to 4.8.0
1 parent 49a991d commit 1bf0c0f

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

src/OpenTok/Util/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
// TODO: build this dynamically
3838
/** @internal */
39-
define('OPENTOK_SDK_VERSION', '4.6.3');
39+
define('OPENTOK_SDK_VERSION', '4.8.0');
4040
/** @internal */
4141
define('OPENTOK_SDK_USER_AGENT', 'OpenTok-PHP-SDK/' . OPENTOK_SDK_VERSION);
4242

tests/OpenTokTest/ArchiveTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function testStopsArchive()
156156
// TODO: test the dynamically built User Agent string
157157
$userAgent = $request->getHeaderLine('User-Agent');
158158
$this->assertNotEmpty($userAgent);
159-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
159+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
160160

161161
// TODO: test the properties of the actual archive object
162162
$this->assertEquals('stopped', $this->archive->status);
@@ -195,7 +195,7 @@ public function testDeletesArchive()
195195
// TODO: test the dynamically built User Agent string
196196
$userAgent = $request->getHeaderLine('User-Agent');
197197
$this->assertNotEmpty($userAgent);
198-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
198+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
199199

200200
$this->assertTrue($success);
201201
// TODO: assert that all properties of the archive object were cleared

tests/OpenTokTest/OpenTokTest.php

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -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/4.6.3', $userAgent);
130+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $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/4.6.3', $userAgent);
190+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $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/4.6.3', $userAgent);
238+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $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/4.6.3', $userAgent);
283+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
284284

285285
$archiveMode = $this->getPostField($request, 'archiveMode');
286286
$this->assertEquals('always', $archiveMode);
@@ -518,7 +518,7 @@ public function testStartsArchive()
518518
// TODO: test the dynamically built User Agent string
519519
$userAgent = $request->getHeaderLine('User-Agent');
520520
$this->assertNotEmpty($userAgent);
521-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
521+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
522522

523523
$this->assertInstanceOf('OpenTok\Archive', $archive);
524524
$this->assertEquals(0, $archive->duration);
@@ -568,7 +568,7 @@ public function testStartsArchiveNamed()
568568
// TODO: test the dynamically built User Agent string
569569
$userAgent = $request->getHeaderLine('User-Agent');
570570
$this->assertNotEmpty($userAgent);
571-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
571+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
572572

573573
$body = json_decode($request->getBody());
574574
$this->assertEquals($sessionId, $body->sessionId);
@@ -619,7 +619,7 @@ public function testStartsArchiveNamedDeprecated()
619619
// TODO: test the dynamically built User Agent string
620620
$userAgent = $request->getHeaderLine('User-Agent');
621621
$this->assertNotEmpty($userAgent);
622-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
622+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
623623

624624
$body = json_decode($request->getBody());
625625
$this->assertEquals($sessionId, $body->sessionId);
@@ -666,7 +666,7 @@ public function testStartsArchiveAudioOnly()
666666
// TODO: test the dynamically built User Agent string
667667
$userAgent = $request->getHeaderLine('User-Agent');
668668
$this->assertNotEmpty($userAgent);
669-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
669+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
670670

671671
$body = json_decode($request->getBody());
672672
$this->assertEquals($sessionId, $body->sessionId);
@@ -716,7 +716,7 @@ public function testStartsArchiveIndividualOutput()
716716
// TODO: test the dynamically built User Agent string
717717
$userAgent = $request->getHeaderLine('User-Agent');
718718
$this->assertNotEmpty($userAgent);
719-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
719+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
720720

721721
$body = json_decode($request->getBody());
722722
$this->assertEquals($sessionId, $body->sessionId);
@@ -765,7 +765,7 @@ public function testStartsArchiveResolutionSD()
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/4.6.3', $userAgent);
768+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
769769

770770
$body = json_decode($request->getBody());
771771
$this->assertEquals($sessionId, $body->sessionId);
@@ -813,7 +813,7 @@ public function testStartsArchiveResolutionHD()
813813
// TODO: test the dynamically built User Agent string
814814
$userAgent = $request->getHeaderLine('User-Agent');
815815
$this->assertNotEmpty($userAgent);
816-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
816+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
817817

818818
$body = json_decode($request->getBody());
819819
$this->assertEquals($sessionId, $body->sessionId);
@@ -857,7 +857,7 @@ public function testStopsArchive()
857857
// TODO: test the dynamically built User Agent string
858858
$userAgent = $request->getHeaderLine('User-Agent');
859859
$this->assertNotEmpty($userAgent);
860-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
860+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
861861

862862
$this->assertInstanceOf('OpenTok\Archive', $archive);
863863
// TODO: test the properties of the actual archive object
@@ -896,7 +896,7 @@ public function testGetsArchive()
896896
// TODO: test the dynamically built User Agent string
897897
$userAgent = $request->getHeaderLine('User-Agent');
898898
$this->assertNotEmpty($userAgent);
899-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
899+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
900900

901901
$this->assertInstanceOf('OpenTok\Archive', $archive);
902902
// TODO: test the properties of the actual archive object
@@ -933,7 +933,7 @@ public function testDeletesArchive()
933933
// TODO: test the dynamically built User Agent string
934934
$userAgent = $request->getHeaderLine('User-Agent');
935935
$this->assertNotEmpty($userAgent);
936-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
936+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
937937

938938
$this->assertTrue($success);
939939
// TODO: test the properties of the actual archive object
@@ -968,7 +968,7 @@ public function testListsArchives()
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.6.3', $userAgent);
971+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
972972

973973
$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
974974
// TODO: test the properties of the actual archiveList object and its contained archive
@@ -1004,7 +1004,7 @@ public function testListsArchivesWithOffsetAndCount()
10041004
// TODO: test the dynamically built User Agent string
10051005
$userAgent = $request->getHeaderLine('User-Agent');
10061006
$this->assertNotEmpty($userAgent);
1007-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1007+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
10081008

10091009
$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
10101010
$this->assertEquals(1, $archiveList->totalCount());
@@ -1045,7 +1045,7 @@ public function testListsArchivesWithSessionId()
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/4.6.3', $userAgent);
1048+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
10491049

10501050
$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
10511051
$this->assertEquals(2, $archiveList->totalCount());
@@ -1129,7 +1129,7 @@ public function testForceDisconnect()
11291129
// TODO: test the dynamically built User Agent string
11301130
$userAgent = $request->getHeaderLine('User-Agent');
11311131
$this->assertNotEmpty($userAgent);
1132-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1132+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
11331133

11341134
$this->assertTrue($success);
11351135
}
@@ -1190,7 +1190,7 @@ public function testStartsBroadcast()
11901190
// TODO: test the dynamically built User Agent string
11911191
$userAgent = $request->getHeaderLine('User-Agent');
11921192
$this->assertNotEmpty($userAgent);
1193-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1193+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
11941194

11951195
$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
11961196
$this->assertIsString($broadcast->id);
@@ -1246,7 +1246,7 @@ public function testStartBroadcastWithOptions()
12461246
// TODO: test the dynamically built User Agent string
12471247
$userAgent = $request->getHeaderLine('User-Agent');
12481248
$this->assertNotEmpty($userAgent);
1249-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1249+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
12501250

12511251
$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
12521252
$this->assertIsString($broadcast->id);
@@ -1293,7 +1293,7 @@ public function testStopsBroadcast()
12931293
// TODO: test the dynamically built User Agent string
12941294
$userAgent = $request->getHeaderLine('User-Agent');
12951295
$this->assertNotEmpty($userAgent);
1296-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1296+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
12971297

12981298
$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
12991299
$this->assertTrue($broadcast->isStopped);
@@ -1330,7 +1330,7 @@ public function testGetsBroadcast()
13301330
// TODO: test the dynamically built User Agent string
13311331
$userAgent = $request->getHeaderLine('User-Agent');
13321332
$this->assertNotEmpty($userAgent);
1333-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1333+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
13341334

13351335
$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
13361336
}
@@ -1374,7 +1374,7 @@ public function testUpdatesBroadcastLayoutWithPredefined()
13741374
// TODO: test the dynamically built User Agent string
13751375
$userAgent = $request->getHeaderLine('User-Agent');
13761376
$this->assertNotEmpty($userAgent);
1377-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1377+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
13781378
}
13791379

13801380
public function testUpdatesBroadcastLayoutWithCustom()
@@ -1420,7 +1420,7 @@ public function testUpdatesBroadcastLayoutWithCustom()
14201420
// TODO: test the dynamically built User Agent string
14211421
$userAgent = $request->getHeaderLine('User-Agent');
14221422
$this->assertNotEmpty($userAgent);
1423-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1423+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
14241424
}
14251425

14261426
public function testUpdatesStreamLayoutClassList()
@@ -1465,7 +1465,7 @@ public function testUpdatesStreamLayoutClassList()
14651465
// TODO: test the dynamically built User Agent string
14661466
$userAgent = $request->getHeaderLine('User-Agent');
14671467
$this->assertNotEmpty($userAgent);
1468-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1468+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
14691469
}
14701470

14711471
public function testGetStream()
@@ -1504,7 +1504,7 @@ public function testGetStream()
15041504

15051505
$userAgent = $request->getHeaderLine('User-Agent');
15061506
$this->assertNotEmpty($userAgent);
1507-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1507+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
15081508
}
15091509

15101510
public function testSipCall()
@@ -1669,7 +1669,7 @@ public function testSignalData()
16691669
// TODO: test the dynamically built User Agent string
16701670
$userAgent = $request->getHeaderLine('User-Agent');
16711671
$this->assertNotEmpty($userAgent);
1672-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1672+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
16731673

16741674
$body = json_decode($request->getBody());
16751675
$this->assertEquals('apple', $body->data);
@@ -1711,7 +1711,7 @@ public function testSignalWithConnectionId()
17111711
// TODO: test the dynamically built User Agent string
17121712
$userAgent = $request->getHeaderLine('User-Agent');
17131713
$this->assertNotEmpty($userAgent);
1714-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1714+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
17151715

17161716
$body = json_decode($request->getBody());
17171717
$this->assertEquals('random message', $body->data);
@@ -1826,7 +1826,7 @@ public function testListStreams()
18261826
// TODO: test the dynamically built User Agent string
18271827
$userAgent = $request->getHeaderLine('User-Agent');
18281828
$this->assertNotEmpty($userAgent);
1829-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1829+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
18301830

18311831
$this->assertInstanceOf('OpenTok\StreamList', $streamList);
18321832

@@ -1870,7 +1870,7 @@ public function testsSetArchiveLayoutWithPredefined()
18701870
// TODO: test the dynamically built User Agent string
18711871
$userAgent = $request->getHeaderLine('User-Agent');
18721872
$this->assertNotEmpty($userAgent);
1873-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1873+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
18741874
}
18751875

18761876
public function testsSetArchiveLayoutWithCustom()
@@ -1916,7 +1916,7 @@ public function testsSetArchiveLayoutWithCustom()
19161916
// TODO: test the dynamically built User Agent string
19171917
$userAgent = $request->getHeaderLine('User-Agent');
19181918
$this->assertNotEmpty($userAgent);
1919-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.6.3', $userAgent);
1919+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
19201920
}
19211921

19221922
/**

0 commit comments

Comments
 (0)