From 9313bc2230ebdbb081e4d64c63a98185bbc4ea2d Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 26 Apr 2019 20:43:01 +0200 Subject: [PATCH] test: Fix YoutubeStreamTest --- tests/YoutubeStreamTest.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/YoutubeStreamTest.php b/tests/YoutubeStreamTest.php index 3907389..7cc7580 100644 --- a/tests/YoutubeStreamTest.php +++ b/tests/YoutubeStreamTest.php @@ -24,4 +24,24 @@ class YoutubeStreamTest extends StreamTest $this->stream = new YoutubeStream($video); } + + /** + * Test the getMetadata() function. + * + * @return void + */ + public function testGetMetadataWithKey() + { + $this->assertNull($this->stream->getMetadata('foo')); + } + + /** + * Test the detach() function. + * + * @return void + */ + public function testDetach() + { + $this->assertNull($this->stream->detach()); + } }