Skip to content

Commit

Permalink
Merge pull request #3 from voku/analysis-zEPELD
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
voku committed May 17, 2016
2 parents 75dfa3d + 4292e8d commit 7118322
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/Purl/Test/UrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,25 +322,25 @@ public function testFromCurrentServerVariables() {
self::assertEquals('http://user:passwd123@jwage.com/', (string) $url);
}

public function testRelativeUrl()
public function testRelativeUrl()
{
// test all resource parts
$url = new Url("/path1/path2?x=1&y=2#frag");
self::assertFalse($url->isAbsolute());
self::assertEquals("/path1/path2?x=1&y=2#frag",(string)$url);
$url = new Url('/path1/path2?x=1&y=2#frag');
self::assertFalse($url->isAbsolute());
self::assertEquals('/path1/path2?x=1&y=2#frag', (string)$url);

// test base path
$url = new Url("/path1");
self::assertEquals("/path1",(string)$url);
// test base path
$url = new Url('/path1');
self::assertEquals('/path1', (string)$url);

// test minimal path
$url = new Url("/");
self::assertEquals("/",(string)$url);
$url = new Url('/');
self::assertEquals('/', (string)$url);

// test feature request
$url = new Url('/events');
$url->query->set('param1', 'value1');
self::assertEquals("/events?param1=value1",(string)$url);
self::assertEquals('/events?param1=value1', (string)$url);
}
}

Expand Down

0 comments on commit 7118322

Please sign in to comment.