Skip to content

Commit

Permalink
Move testNullPassingThrough to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
spekulatius committed Nov 10, 2022
1 parent 2fd6e1a commit e0a9106
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/UrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@

class UrlTest extends \PHPUnit\Framework\TestCase
{
/**
* If null is passed to `makeUrlAbsolute`, it should always return null.
*
* @test
*/
public function testNullPassingThrough()
{
$web = new \spekulatius\phpscraper;

$this->assertNull($web->makeUrlAbsolute(null));
}

/**
* @test
*/
Expand Down Expand Up @@ -37,18 +49,6 @@ public function validateUriTest()
);
}

/**
* If null is passed to `makeUrlAbsolute`, it should always return null.
*
* @test
*/
public function testNullPassingThrough()
{
$web = new \spekulatius\phpscraper;

$this->assertNull($web->makeUrlAbsolute(null));
}

/**
* @test
*/
Expand Down

0 comments on commit e0a9106

Please sign in to comment.