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('#