Skip to content

Commit 954e51c

Browse files
committed
Update to version 2.2.3
1 parent ed982c7 commit 954e51c

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

DEVELOPING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ In order to create a release, the following should be completed in order.
3131
- src/OpenTok/Util/Client.php
3232
- tests/OpenTok/OpenTokTest.php
3333
- tests/OpenTok/ArchiveTest.php
34-
- sample/HelloWorld/composer.json (only needs to change when MINOR version is changing)
35-
- sample/Archiving/composer.json (only needs to change when MINOR version is changing)
3634
- README.md (only needs to change when MINOR version is changing)
3735
1. Commit the version number change with the message "Update to version x.x.x", substituting the new version number.
3836
1. Create a git tag: `git tag -a vx.x.x -m "Release vx.x.x"`

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.3-alpha.1');
20+
define('OPENTOK_SDK_VERSION', '2.2.3');
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.3-alpha.1', $userAgent->__toString());
107+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $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.3-alpha.1', $userAgent->__toString());
150+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $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.3-alpha.1', $userAgent->__toString());
87+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $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.3-alpha.1', $userAgent->__toString());
134+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $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.3-alpha.1', $userAgent->__toString());
183+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $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.3-alpha.1', $userAgent->__toString());
361+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $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.3-alpha.1', $userAgent->__toString());
407+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $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.3-alpha.1', $userAgent->__toString());
447+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $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.3-alpha.1', $userAgent->__toString());
489+
$this->assertStringStartsWith('OpenTok-PHP-SDK/2.2.3', $userAgent->__toString());
490490

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

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

0 commit comments

Comments
 (0)