Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 2, 2016
1 parent 5e74701 commit 98f234a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/UrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,11 @@ public function it_will_return_null_for_a_non_existing_segment()
{
$this->assertNull(Url::create('http://example.com/part1/part2/part3')->segment(5));
}

/** @test */
public function it_can_test_if_it_is_equal_to_another_url()
{
$this->assertTrue(Url::create('http://example.com')->isEqual(Url::create('http://example.com')));
$this->assertFalse(Url::create('http://example.com')->isEqual(Url::create('http://example2.com')));
}
}

0 comments on commit 98f234a

Please sign in to comment.