Skip to content

Commit f094fb3

Browse files
committed
Version bump for 4.9.0
1 parent 784ba64 commit f094fb3

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
@@ -38,7 +38,7 @@
3838

3939
// TODO: build this dynamically
4040
/** @internal */
41-
define('OPENTOK_SDK_VERSION', '4.8.0');
41+
define('OPENTOK_SDK_VERSION', '4.9.0');
4242
/** @internal */
4343
define('OPENTOK_SDK_USER_AGENT', 'OpenTok-PHP-SDK/' . OPENTOK_SDK_VERSION);
4444

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.8.0', $userAgent);
159+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.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.8.0', $userAgent);
198+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.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
@@ -135,7 +135,7 @@ public function testCreatesDefaultSession()
135135
// TODO: test the dynamically built User Agent string
136136
$userAgent = $request->getHeaderLine('User-Agent');
137137
$this->assertNotEmpty($userAgent);
138-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
138+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
139139

140140
$p2p_preference = $this->getPostField($request, 'p2p.preference');
141141
$this->assertEquals('enabled', $p2p_preference);
@@ -195,7 +195,7 @@ public function testCreatesMediaRoutedAndLocationSession()
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.8.0', $userAgent);
198+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
199199

200200
$location = $this->getPostField($request, 'location');
201201
$this->assertEquals('12.34.56.78', $location);
@@ -243,7 +243,7 @@ public function testCreatesMediaRelayedSession()
243243
// TODO: test the dynamically built User Agent string
244244
$userAgent = $request->getHeaderLine('User-Agent');
245245
$this->assertNotEmpty($userAgent);
246-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
246+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
247247

248248
$p2p_preference = $this->getPostField($request, 'p2p.preference');
249249
$this->assertEquals('enabled', $p2p_preference);
@@ -288,7 +288,7 @@ public function testCreatesAutoArchivedSession()
288288
// TODO: test the dynamically built User Agent string
289289
$userAgent = $request->getHeaderLine('User-Agent');
290290
$this->assertNotEmpty($userAgent);
291-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
291+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
292292

293293
$archiveMode = $this->getPostField($request, 'archiveMode');
294294
$this->assertEquals('always', $archiveMode);
@@ -526,7 +526,7 @@ public function testStartsArchive()
526526
// TODO: test the dynamically built User Agent string
527527
$userAgent = $request->getHeaderLine('User-Agent');
528528
$this->assertNotEmpty($userAgent);
529-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
529+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
530530

531531
$this->assertInstanceOf('OpenTok\Archive', $archive);
532532
$this->assertEquals(0, $archive->duration);
@@ -576,7 +576,7 @@ public function testStartsArchiveNamed()
576576
// TODO: test the dynamically built User Agent string
577577
$userAgent = $request->getHeaderLine('User-Agent');
578578
$this->assertNotEmpty($userAgent);
579-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
579+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
580580

581581
$body = json_decode($request->getBody());
582582
$this->assertEquals($sessionId, $body->sessionId);
@@ -627,7 +627,7 @@ public function testStartsArchiveNamedDeprecated()
627627
// TODO: test the dynamically built User Agent string
628628
$userAgent = $request->getHeaderLine('User-Agent');
629629
$this->assertNotEmpty($userAgent);
630-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
630+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
631631

632632
$body = json_decode($request->getBody());
633633
$this->assertEquals($sessionId, $body->sessionId);
@@ -674,7 +674,7 @@ public function testStartsArchiveAudioOnly()
674674
// TODO: test the dynamically built User Agent string
675675
$userAgent = $request->getHeaderLine('User-Agent');
676676
$this->assertNotEmpty($userAgent);
677-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
677+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
678678

679679
$body = json_decode($request->getBody());
680680
$this->assertEquals($sessionId, $body->sessionId);
@@ -724,7 +724,7 @@ public function testStartsArchiveIndividualOutput()
724724
// TODO: test the dynamically built User Agent string
725725
$userAgent = $request->getHeaderLine('User-Agent');
726726
$this->assertNotEmpty($userAgent);
727-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
727+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
728728

729729
$body = json_decode($request->getBody());
730730
$this->assertEquals($sessionId, $body->sessionId);
@@ -773,7 +773,7 @@ public function testStartsArchiveResolutionSD()
773773
// TODO: test the dynamically built User Agent string
774774
$userAgent = $request->getHeaderLine('User-Agent');
775775
$this->assertNotEmpty($userAgent);
776-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
776+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
777777

778778
$body = json_decode($request->getBody());
779779
$this->assertEquals($sessionId, $body->sessionId);
@@ -821,7 +821,7 @@ public function testStartsArchiveResolutionHD()
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.8.0', $userAgent);
824+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
825825

826826
$body = json_decode($request->getBody());
827827
$this->assertEquals($sessionId, $body->sessionId);
@@ -865,7 +865,7 @@ public function testStopsArchive()
865865
// TODO: test the dynamically built User Agent string
866866
$userAgent = $request->getHeaderLine('User-Agent');
867867
$this->assertNotEmpty($userAgent);
868-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
868+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
869869

870870
$this->assertInstanceOf('OpenTok\Archive', $archive);
871871
// TODO: test the properties of the actual archive object
@@ -904,7 +904,7 @@ public function testGetsArchive()
904904
// TODO: test the dynamically built User Agent string
905905
$userAgent = $request->getHeaderLine('User-Agent');
906906
$this->assertNotEmpty($userAgent);
907-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
907+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
908908

909909
$this->assertInstanceOf('OpenTok\Archive', $archive);
910910
// TODO: test the properties of the actual archive object
@@ -941,7 +941,7 @@ public function testDeletesArchive()
941941
// TODO: test the dynamically built User Agent string
942942
$userAgent = $request->getHeaderLine('User-Agent');
943943
$this->assertNotEmpty($userAgent);
944-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
944+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
945945

946946
$this->assertTrue($success);
947947
// TODO: test the properties of the actual archive object
@@ -976,7 +976,7 @@ public function testListsArchives()
976976
// TODO: test the dynamically built User Agent string
977977
$userAgent = $request->getHeaderLine('User-Agent');
978978
$this->assertNotEmpty($userAgent);
979-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
979+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
980980

981981
$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
982982
// TODO: test the properties of the actual archiveList object and its contained archive
@@ -1012,7 +1012,7 @@ public function testListsArchivesWithOffsetAndCount()
10121012
// TODO: test the dynamically built User Agent string
10131013
$userAgent = $request->getHeaderLine('User-Agent');
10141014
$this->assertNotEmpty($userAgent);
1015-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1015+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
10161016

10171017
$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
10181018
$this->assertEquals(1, $archiveList->totalCount());
@@ -1053,7 +1053,7 @@ public function testListsArchivesWithSessionId()
10531053
// TODO: test the dynamically built User Agent string
10541054
$userAgent = $request->getHeaderLine('User-Agent');
10551055
$this->assertNotEmpty($userAgent);
1056-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1056+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
10571057

10581058
$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
10591059
$this->assertEquals(2, $archiveList->totalCount());
@@ -1137,7 +1137,7 @@ public function testForceDisconnect()
11371137
// TODO: test the dynamically built User Agent string
11381138
$userAgent = $request->getHeaderLine('User-Agent');
11391139
$this->assertNotEmpty($userAgent);
1140-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1140+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
11411141

11421142
$this->assertTrue($success);
11431143
}
@@ -1198,7 +1198,7 @@ public function testStartsBroadcast()
11981198
// TODO: test the dynamically built User Agent string
11991199
$userAgent = $request->getHeaderLine('User-Agent');
12001200
$this->assertNotEmpty($userAgent);
1201-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1201+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
12021202

12031203
$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
12041204
$this->assertIsString($broadcast->id);
@@ -1254,7 +1254,7 @@ public function testStartBroadcastWithOptions()
12541254
// TODO: test the dynamically built User Agent string
12551255
$userAgent = $request->getHeaderLine('User-Agent');
12561256
$this->assertNotEmpty($userAgent);
1257-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1257+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
12581258

12591259
$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
12601260
$this->assertIsString($broadcast->id);
@@ -1301,7 +1301,7 @@ public function testStopsBroadcast()
13011301
// TODO: test the dynamically built User Agent string
13021302
$userAgent = $request->getHeaderLine('User-Agent');
13031303
$this->assertNotEmpty($userAgent);
1304-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1304+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
13051305

13061306
$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
13071307
$this->assertTrue($broadcast->isStopped);
@@ -1338,7 +1338,7 @@ public function testGetsBroadcast()
13381338
// TODO: test the dynamically built User Agent string
13391339
$userAgent = $request->getHeaderLine('User-Agent');
13401340
$this->assertNotEmpty($userAgent);
1341-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1341+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
13421342

13431343
$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
13441344
}
@@ -1382,7 +1382,7 @@ public function testUpdatesBroadcastLayoutWithPredefined()
13821382
// TODO: test the dynamically built User Agent string
13831383
$userAgent = $request->getHeaderLine('User-Agent');
13841384
$this->assertNotEmpty($userAgent);
1385-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1385+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
13861386
}
13871387

13881388
public function testUpdatesBroadcastLayoutWithCustom()
@@ -1428,7 +1428,7 @@ public function testUpdatesBroadcastLayoutWithCustom()
14281428
// TODO: test the dynamically built User Agent string
14291429
$userAgent = $request->getHeaderLine('User-Agent');
14301430
$this->assertNotEmpty($userAgent);
1431-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1431+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
14321432
}
14331433

14341434
public function testUpdatesStreamLayoutClassList()
@@ -1473,7 +1473,7 @@ public function testUpdatesStreamLayoutClassList()
14731473
// TODO: test the dynamically built User Agent string
14741474
$userAgent = $request->getHeaderLine('User-Agent');
14751475
$this->assertNotEmpty($userAgent);
1476-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1476+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
14771477
}
14781478

14791479
public function testGetStream()
@@ -1512,7 +1512,7 @@ public function testGetStream()
15121512

15131513
$userAgent = $request->getHeaderLine('User-Agent');
15141514
$this->assertNotEmpty($userAgent);
1515-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1515+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
15161516
}
15171517

15181518
public function testSipCall()
@@ -1789,7 +1789,7 @@ public function testSignalData()
17891789
// TODO: test the dynamically built User Agent string
17901790
$userAgent = $request->getHeaderLine('User-Agent');
17911791
$this->assertNotEmpty($userAgent);
1792-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1792+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
17931793

17941794
$body = json_decode($request->getBody());
17951795
$this->assertEquals('apple', $body->data);
@@ -1831,7 +1831,7 @@ public function testSignalWithConnectionId()
18311831
// TODO: test the dynamically built User Agent string
18321832
$userAgent = $request->getHeaderLine('User-Agent');
18331833
$this->assertNotEmpty($userAgent);
1834-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1834+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
18351835

18361836
$body = json_decode($request->getBody());
18371837
$this->assertEquals('random message', $body->data);
@@ -1946,7 +1946,7 @@ public function testListStreams()
19461946
// TODO: test the dynamically built User Agent string
19471947
$userAgent = $request->getHeaderLine('User-Agent');
19481948
$this->assertNotEmpty($userAgent);
1949-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1949+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
19501950

19511951
$this->assertInstanceOf('OpenTok\StreamList', $streamList);
19521952

@@ -1990,7 +1990,7 @@ public function testsSetArchiveLayoutWithPredefined()
19901990
// TODO: test the dynamically built User Agent string
19911991
$userAgent = $request->getHeaderLine('User-Agent');
19921992
$this->assertNotEmpty($userAgent);
1993-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
1993+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
19941994
}
19951995

19961996
public function testsSetArchiveLayoutWithCustom()
@@ -2036,7 +2036,7 @@ public function testsSetArchiveLayoutWithCustom()
20362036
// TODO: test the dynamically built User Agent string
20372037
$userAgent = $request->getHeaderLine('User-Agent');
20382038
$this->assertNotEmpty($userAgent);
2039-
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.8.0', $userAgent);
2039+
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.9.0', $userAgent);
20402040
}
20412041

20422042
/**

0 commit comments

Comments
 (0)