-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from opentok/dev
Dev
- Loading branch information
Showing
5 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
namespace OpenTokTest; | ||
|
||
use OpenTok\SipCall; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class SipCallTest extends TestCase | ||
{ | ||
public function testSipCallAttributes(): void | ||
{ | ||
$sipCallData = [ | ||
'id' => '1_MX4xMjM0NTY3OH4', | ||
'connectionId' => 'VGh1IEZlYiAyNyAwNDozODozMSBQU1QgMjAxNH4wLjI0NDgyMjI', | ||
'streamId' => '0123456789abcdef0123456789abcdef0123456789' | ||
]; | ||
|
||
$sipCall = new SipCall($sipCallData); | ||
|
||
$this->assertEquals('1_MX4xMjM0NTY3OH4', $sipCall->id); | ||
$this->assertEquals('VGh1IEZlYiAyNyAwNDozODozMSBQU1QgMjAxNH4wLjI0NDgyMjI', $sipCall->connectionId); | ||
$this->assertEquals('0123456789abcdef0123456789abcdef0123456789', $sipCall->streamId); | ||
$this->assertNull($sipCall->observeForceMute); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"id" : "1bae377f-d620-4e58-86c0-5a37364eec0c", | ||
"connectionId" : "da9cb410-e29b-4c2d-ab9e-fe65bf83fcaf", | ||
"streamId" : "e6f13213-22cb-45de-b71d-af7cef329954", | ||
"observeForceMute" : false | ||
"streamId" : "e6f13213-22cb-45de-b71d-af7cef329954" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"id" : "1bae377f-d620-4e58-86c0-5a37364eec0c", | ||
"connectionId" : "da9cb410-e29b-4c2d-ab9e-fe65bf83fcaf", | ||
"streamId" : "e6f13213-22cb-45de-b71d-af7cef329954", | ||
"observeForceMute" : true | ||
"streamId" : "e6f13213-22cb-45de-b71d-af7cef329954" | ||
} |