Skip to content

Commit

Permalink
refactor: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 10, 2023
1 parent 0522efa commit 295a486
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions system/HTTP/URIFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ public function __construct(array &$server, array &$get, App $appConfig)
}

/**
* Create the current URI object.
* Create the current URI object from superglobals.
*
* This method updates superglobal $_SERVER and $_GET.
*/
public function createCurrentURI(): URI
public function createFromGlobals(): URI
{
$routePath = $this->detectRoutePath();

Expand Down
2 changes: 1 addition & 1 deletion tests/system/HTTP/URIFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testCreateCurrentURI()

$factory = new URIFactory($_SERVER, $_GET, new App());

$uri = $factory->createCurrentURI();
$uri = $factory->createFromGlobals();

$this->assertInstanceOf(URI::class, $uri);
$this->assertSame('http://localhost:8080/woot?code=good', (string) $uri);
Expand Down

0 comments on commit 295a486

Please sign in to comment.