Skip to content

Commit 0f41e03

Browse files
committed
placeholder sip test
1 parent 5fc2719 commit 0f41e03

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

tests/OpenTokTest/OpenTokTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
use OpenTok\MediaMode;
99
use ArgumentCountError;
1010
use DomainException;
11-
use Exception;
12-
use GuzzleHttp\Exception\GuzzleException;
1311
use OpenTok\OutputMode;
1412
use OpenTok\ArchiveMode;
1513
use OpenTok\StreamMode;
@@ -18,12 +16,7 @@
1816
use GuzzleHttp\HandlerStack;
1917
use PHPUnit\Framework\TestCase;
2018
use GuzzleHttp\Handler\MockHandler;
21-
use InvalidArgumentException as GlobalInvalidArgumentException;
22-
use OpenTok\Exception\AuthenticationException;
23-
use OpenTok\Exception\DomainException as ExceptionDomainException;
2419
use OpenTok\Exception\InvalidArgumentException;
25-
use RuntimeException;
26-
use OpenTok\Exception\UnexpectedValueException;
2720

2821
define('OPENTOK_DEBUG', true);
2922

tests/OpenTokTest/SipCallTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
namespace OpenTokTest;
3+
4+
use OpenTok\SipCall;
5+
use PHPUnit\Framework\TestCase;
6+
7+
class SipCallTest extends TestCase
8+
{
9+
public function testSipCallAttributes(): void
10+
{
11+
$sipCallData = [
12+
'id' => '1_MX4xMjM0NTY3OH4',
13+
'connectionId' => 'VGh1IEZlYiAyNyAwNDozODozMSBQU1QgMjAxNH4wLjI0NDgyMjI',
14+
'streamId' => '0123456789abcdef0123456789abcdef0123456789'
15+
];
16+
17+
$sipCall = new SipCall($sipCallData);
18+
19+
$this->assertEquals('1_MX4xMjM0NTY3OH4', $sipCall->id);
20+
}
21+
}

0 commit comments

Comments
 (0)