Commit 5161b2a 1 parent 4c4f430 commit 5161b2a Copy full SHA for 5161b2a
File tree 1 file changed +0
-27
lines changed
1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -47,33 +47,6 @@ protected function setUp()
47
47
parent ::setUp ();
48
48
}
49
49
50
- public function test_it_accepts_a_valid_url ()
51
- {
52
- $ extractor = $ this ->extractor ->fromUrl ($ expectedUrl = 'https://example.com ' );
53
-
54
- $ this ->assertInstanceOf (FaviconExtractor::class, $ extractor );
55
- $ this ->assertSame ($ expectedUrl , $ extractor ->getUrl ());
56
- }
57
-
58
- public function provideInvalidUrls ()
59
- {
60
- return [
61
- 'Missing protocol ' => ['example.com ' ],
62
- 'Invalid protocol ' => ['ftp://example.com ' ],
63
- 'Missing tld ' => ['http://example ' ],
64
- ];
65
- }
66
-
67
- /**
68
- * @dataProvider provideInvalidUrls
69
- */
70
- public function test_it_does_not_accept_an_invalid_url (string $ url )
71
- {
72
- $ this ->expectException (InvalidUrlException::class);
73
-
74
- $ this ->extractor ->fromUrl ($ url );
75
- }
76
-
77
50
public function test_it_fetches_the_favicon ()
78
51
{
79
52
$ expectedUrl = 'http://example.com ' ;
You can’t perform that action at this time.
0 commit comments