File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 88use OpenTok \MediaMode ;
99use ArgumentCountError ;
1010use DomainException ;
11- use Exception ;
12- use GuzzleHttp \Exception \GuzzleException ;
1311use OpenTok \OutputMode ;
1412use OpenTok \ArchiveMode ;
1513use OpenTok \StreamMode ;
1816use GuzzleHttp \HandlerStack ;
1917use PHPUnit \Framework \TestCase ;
2018use GuzzleHttp \Handler \MockHandler ;
21- use InvalidArgumentException as GlobalInvalidArgumentException ;
22- use OpenTok \Exception \AuthenticationException ;
23- use OpenTok \Exception \DomainException as ExceptionDomainException ;
2419use OpenTok \Exception \InvalidArgumentException ;
25- use RuntimeException ;
26- use OpenTok \Exception \UnexpectedValueException ;
2720
2821define ('OPENTOK_DEBUG ' , true );
2922
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments