Skip to content

Commit

Permalink
Begin development on v4.1.1-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
msach22 committed Jun 1, 2018
1 parent 2b0117c commit cb67eaa
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/OpenTok/Util/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// TODO: build this dynamically
/** @internal */
define('OPENTOK_SDK_VERSION', '4.1.0');
define('OPENTOK_SDK_VERSION', '4.1.1-alpha.1');
/** @internal */
define('OPENTOK_SDK_USER_AGENT', 'OpenTok-PHP-SDK/' . OPENTOK_SDK_VERSION);

Expand Down
4 changes: 2 additions & 2 deletions tests/OpenTok/ArchiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function testStopsArchive()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

// TODO: test the properties of the actual archive object
$this->assertEquals('stopped', $this->archive->status);
Expand Down Expand Up @@ -195,7 +195,7 @@ public function testDeletesArchive()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertTrue($success);
// TODO: assert that all properties of the archive object were cleared
Expand Down
46 changes: 23 additions & 23 deletions tests/OpenTok/OpenTokTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function testCreatesDefaultSession()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$p2p_preference = $this->getPostField($request, 'p2p.preference');
$this->assertEquals('enabled', $p2p_preference);
Expand Down Expand Up @@ -184,7 +184,7 @@ public function testCreatesMediaRoutedAndLocationSession()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$location = $this->getPostField($request, 'location');
$this->assertEquals('12.34.56.78', $location);
Expand Down Expand Up @@ -232,7 +232,7 @@ public function testCreatesMediaRelayedSession()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$p2p_preference = $this->getPostField($request, 'p2p.preference');
$this->assertEquals('enabled', $p2p_preference);
Expand Down Expand Up @@ -277,7 +277,7 @@ public function testCreatesAutoArchivedSession()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$archiveMode = $this->getPostField($request, 'archiveMode');
$this->assertEquals('always', $archiveMode);
Expand Down Expand Up @@ -483,7 +483,7 @@ public function testStartsArchive()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertInstanceOf('OpenTok\Archive', $archive);
$this->assertEquals(0, $archive->duration);
Expand Down Expand Up @@ -533,7 +533,7 @@ public function testStartsArchiveNamed()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$body = json_decode($request->getBody());
$this->assertEquals($sessionId, $body->sessionId);
Expand Down Expand Up @@ -581,7 +581,7 @@ public function testStartsArchiveNamedDeprecated()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$body = json_decode($request->getBody());
$this->assertEquals($sessionId, $body->sessionId);
Expand Down Expand Up @@ -628,7 +628,7 @@ public function testStartsArchiveAudioOnly()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$body = json_decode($request->getBody());
$this->assertEquals($sessionId, $body->sessionId);
Expand Down Expand Up @@ -678,7 +678,7 @@ public function testStartsArchiveIndividualOutput()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$body = json_decode($request->getBody());
$this->assertEquals($sessionId, $body->sessionId);
Expand Down Expand Up @@ -727,7 +727,7 @@ public function testStartsArchiveResolutionSD()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$body = json_decode($request->getBody());
$this->assertEquals($sessionId, $body->sessionId);
Expand Down Expand Up @@ -775,7 +775,7 @@ public function testStartsArchiveResolutionHD()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$body = json_decode($request->getBody());
$this->assertEquals($sessionId, $body->sessionId);
Expand Down Expand Up @@ -819,7 +819,7 @@ public function testStopsArchive()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertInstanceOf('OpenTok\Archive', $archive);
// TODO: test the properties of the actual archive object
Expand Down Expand Up @@ -858,7 +858,7 @@ public function testGetsArchive()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertInstanceOf('OpenTok\Archive', $archive);
// TODO: test the properties of the actual archive object
Expand Down Expand Up @@ -895,7 +895,7 @@ public function testDeletesArchive()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertTrue($success);
// TODO: test the properties of the actual archive object
Expand Down Expand Up @@ -930,7 +930,7 @@ public function testListsArchives()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
// TODO: test the properties of the actual archiveList object and its contained archive
Expand Down Expand Up @@ -966,7 +966,7 @@ public function testListsArchivesWithOffsetAndCount()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertInstanceOf('OpenTok\ArchiveList', $archiveList);
$this->assertEquals(1, $archiveList->totalCount());
Expand Down Expand Up @@ -1051,7 +1051,7 @@ public function testForceDisconnect()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertTrue($success);
}
Expand Down Expand Up @@ -1093,7 +1093,7 @@ public function testStartsBroadcast()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
$this->assertInternalType('string', $broadcast->id);
Expand Down Expand Up @@ -1138,7 +1138,7 @@ public function testStopsBroadcast()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
$this->assertTrue($broadcast->isStopped);
Expand Down Expand Up @@ -1175,7 +1175,7 @@ public function testGetsBroadcast()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);

$this->assertInstanceOf('OpenTok\Broadcast', $broadcast);
}
Expand Down Expand Up @@ -1219,7 +1219,7 @@ public function testUpdatesBroadcastLayoutWithPredefined()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);
}

public function testUpdatesBroadcastLayoutWithCustom()
Expand Down Expand Up @@ -1265,7 +1265,7 @@ public function testUpdatesBroadcastLayoutWithCustom()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);
}

public function testUpdatesStreamLayoutClassList()
Expand Down Expand Up @@ -1310,7 +1310,7 @@ public function testUpdatesStreamLayoutClassList()
// TODO: test the dynamically built User Agent string
$userAgent = $request->getHeaderLine('User-Agent');
$this->assertNotEmpty($userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.0', $userAgent);
$this->assertStringStartsWith('OpenTok-PHP-SDK/4.1.1-alpha.1', $userAgent);
}


Expand Down

0 comments on commit cb67eaa

Please sign in to comment.