Skip to content

Commit

Permalink
changed triggerRoute to routeTo
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Blanquera committed Mar 15, 2018
1 parent 4cd2b6a commit 42dc366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Http/Router/RouterTrait.php
Expand Up @@ -149,7 +149,7 @@ public function setRouter(RouterInterface $router)
*
* @return RouterTrait
*/
public function triggerRoute(string $method, string $path, ...$args)
public function routeTo(string $method, string $path, ...$args)
{
$event = strtoupper($method).' '.$path;

Expand Down
4 changes: 2 additions & 2 deletions test/Http/Router/RouterTrait.php
Expand Up @@ -107,9 +107,9 @@ public function testSetRouter()
/**
* covers Cradle\Http\RouterTrait::triggerRoute
*/
public function testTriggerRoute()
public function testRouteTo()
{
$instance = $this->object->triggerRoute('get', 'foobar');
$instance = $this->object->routeTo('get', 'foobar');
$this->assertInstanceOf('Cradle\Http\Router\RouterTraitStub', $instance);
}
}
Expand Down

0 comments on commit 42dc366

Please sign in to comment.