Skip to content

Commit 682011d

Browse files
committed
Update to version 2.2.1
1 parent df5364a commit 682011d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/OpenTok/Util/Client.php

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

1818
// TODO: build this dynamically
1919
/** @internal */
20-
define('OPENTOK_SDK_VERSION', '2.2.1-alpha.1');
20+
define('OPENTOK_SDK_VERSION', '2.2.1');
2121
/** @internal */
2222
define('OPENTOK_SDK_USER_AGENT', 'OpenTok-PHP-SDK/' . OPENTOK_SDK_VERSION);
2323

tests/OpenTok/ArchiveTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testStopsArchive()
104104
// TODO: test the dynamically built User Agent string
105105
$userAgent = $request->getHeader('User-Agent');
106106
$this->assertNotEmpty($userAgent);
107-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
107+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
108108

109109
// TODO: test the properties of the actual archive object
110110
$this->assertEquals('stopped', $this->archive->status);
@@ -147,7 +147,7 @@ public function testDeletesArchive()
147147
// TODO: test the dynamically built User Agent string
148148
$userAgent = $request->getHeader('User-Agent');
149149
$this->assertNotEmpty($userAgent);
150-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
150+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
151151

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

tests/OpenTok/OpenTokTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function testCreatesDefaultSession()
8484
// TODO: test the dynamically built User Agent string
8585
$userAgent = $request->getHeader('User-Agent');
8686
$this->assertNotEmpty($userAgent);
87-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
87+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
8888

8989
$p2p_preference = $request->getPostField('p2p.preference');
9090
$this->assertEquals('enabled', $p2p_preference);
@@ -131,7 +131,7 @@ public function testCreatesMediaRoutedAndLocationSession()
131131
// TODO: test the dynamically built User Agent string
132132
$userAgent = $request->getHeader('User-Agent');
133133
$this->assertNotEmpty($userAgent);
134-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
134+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
135135

136136
$location = $request->getPostField('location');
137137
$this->assertEquals('12.34.56.78', $location);
@@ -180,7 +180,7 @@ public function testCreatesMediaRelayedSession()
180180
// TODO: test the dynamically built User Agent string
181181
$userAgent = $request->getHeader('User-Agent');
182182
$this->assertNotEmpty($userAgent);
183-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
183+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
184184

185185
$p2p_preference = $request->getPostField('p2p.preference');
186186
$this->assertEquals('enabled', $p2p_preference);
@@ -358,7 +358,7 @@ public function testStartsArchive()
358358
// TODO: test the dynamically built User Agent string
359359
$userAgent = $request->getHeader('User-Agent');
360360
$this->assertNotEmpty($userAgent);
361-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
361+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
362362

363363
$body = json_decode($request->getBody());
364364
$this->assertEquals($sessionId, $body->sessionId);
@@ -404,7 +404,7 @@ public function testStopsArchive()
404404
// TODO: test the dynamically built User Agent string
405405
$userAgent = $request->getHeader('User-Agent');
406406
$this->assertNotEmpty($userAgent);
407-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
407+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
408408

409409
$this->assertInstanceOf('OpenTok\Archive', $archive);
410410
// TODO: test the properties of the actual archive object
@@ -444,7 +444,7 @@ public function testGetsArchive()
444444
// TODO: test the dynamically built User Agent string
445445
$userAgent = $request->getHeader('User-Agent');
446446
$this->assertNotEmpty($userAgent);
447-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
447+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
448448

449449
$this->assertInstanceOf('OpenTok\Archive', $archive);
450450
// TODO: test the properties of the actual archive object
@@ -486,7 +486,7 @@ public function testDeletesArchive()
486486
// TODO: test the dynamically built User Agent string
487487
$userAgent = $request->getHeader('User-Agent');
488488
$this->assertNotEmpty($userAgent);
489-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
489+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
490490

491491
$this->assertTrue($success);
492492
// TODO: test the properties of the actual archive object
@@ -523,7 +523,7 @@ public function testListsArchives()
523523
// TODO: test the dynamically built User Agent string
524524
$userAgent = $request->getHeader('User-Agent');
525525
$this->assertNotEmpty($userAgent);
526-
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1-alpha.1', $userAgent->__toString());
526+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.1', $userAgent->__toString());
527527

528528
$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
529529
// TODO: test the properties of the actual archiveList object and its contained archive

0 commit comments

Comments
 (0)