From eff2f96ee3f9a845d23140dd1721b14103b5c4d3 Mon Sep 17 00:00:00 2001 From: Aalaap Ghag Date: Sat, 7 Nov 2020 12:13:34 +0530 Subject: [PATCH] Fix tests --- tests/Faker/YoutubeTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/Faker/YoutubeTest.php b/tests/Faker/YoutubeTest.php index 1011703..9df3940 100644 --- a/tests/Faker/YoutubeTest.php +++ b/tests/Faker/YoutubeTest.php @@ -15,35 +15,35 @@ class YoutubeTest extends TestCase */ private $faker; - protected function setUp() + protected function setUp(): void { $faker = Factory::create(); $faker->addProvider(new Youtube($faker)); $this->faker = $faker; } - public function testYoutubeUri() + public function testYoutubeUri(): void { $this->assertRegExp('#(http(s)??\:\/\/)?(www\.)?(youtube\.com\/watch\?v=)(.+)#', $this->faker->youtubeUri()); } - public function testYoutubeShortUri() + public function testYoutubeShortUri(): void { $this->assertRegExp('#(http(s)??\:\/\/)?(www\.)?(youtu.be\/)(.+)#', $this->faker->youtubeShortUri()); } - public function testYoutubeEmbedUri() + public function testYoutubeEmbedUri(): void { $this->assertRegExp('#(http(s)??\:\/\/)?(www\.)?(youtube\.com\/embed\/)(.+)#', $this->faker->youtubeEmbedUri()); } - public function testYoutubeChannelUri() + public function testYoutubeChannelUri(): void { $this->assertRegExp('#(http(s)??\:\/\/)?(www\.)?(youtube\.com\/)(c\/|channel\/|user\/)([a-zA-Z0-9\-]{1,})#', $this->faker->youtubeChannelUri()); } - public function testYoutubeEmbedCode() + public function testYoutubeEmbedCode(): void { $this->assertRegExp('#