Skip to content

Commit 1b37053

Browse files
committed
Updated test for url as array.
1 parent 7821dab commit 1b37053

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/Calls/Call/StreamTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ public function testSetUrl()
5959

6060
$data = $this->stream->jsonSerialize();
6161

62+
$this->assertSame([$url], $data['stream_url']);
63+
}
64+
65+
public function testSetUrlArray()
66+
{
67+
$url = [
68+
'http://example.com',
69+
'http://backup.example.com'
70+
];
71+
$this->stream->setUrl($url);
72+
73+
$data = $this->stream->jsonSerialize();
74+
6275
$this->assertSame($url, $data['stream_url']);
6376
}
6477

0 commit comments

Comments
 (0)