Skip to content

Commit ab74124

Browse files
Add new tests for isUrl in to Str class (#47690)
1 parent f7adb61 commit ab74124

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Support/SupportStrTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ public function testIs()
405405
$this->assertTrue(Str::is([null], null));
406406
}
407407

408+
public function testIsUrl()
409+
{
410+
$this->assertTrue(Str::isUrl('https://laravel.com'));
411+
$this->assertFalse(Str::isUrl('invalid url'));
412+
}
413+
408414
/**
409415
* @dataProvider validUuidList
410416
*/

0 commit comments

Comments
 (0)