Skip to content

Commit

Permalink
remove apropriate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbauer committed Oct 6, 2018
1 parent 4c4f430 commit 5161b2a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions tests/FaviconExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,33 +47,6 @@ protected function setUp()
parent::setUp();
}

public function test_it_accepts_a_valid_url()
{
$extractor = $this->extractor->fromUrl($expectedUrl = 'https://example.com');

$this->assertInstanceOf(FaviconExtractor::class, $extractor);
$this->assertSame($expectedUrl, $extractor->getUrl());
}

public function provideInvalidUrls()
{
return [
'Missing protocol' => ['example.com'],
'Invalid protocol' => ['ftp://example.com'],
'Missing tld' => ['http://example'],
];
}

/**
* @dataProvider provideInvalidUrls
*/
public function test_it_does_not_accept_an_invalid_url(string $url)
{
$this->expectException(InvalidUrlException::class);

$this->extractor->fromUrl($url);
}

public function test_it_fetches_the_favicon()
{
$expectedUrl = 'http://example.com';
Expand Down

0 comments on commit 5161b2a

Please sign in to comment.