Skip to content

Commit

Permalink
refactor: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Aug 27, 2024
1 parent dea605b commit 105c1f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/system/Router/RouteCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1760,9 +1760,9 @@ public function testRouteMatchingHostMultipleCorrect(): void
$routes->get('/', 'Home::index', ['as' => 'home']);
$routes->get('/', '\App\Controllers\Site\CDoc::index', ['hostname' => ['one.domain.com', 'two.domain.com', 'three.domain.com']]);

$expects = '\App\Controllers\Site\CDoc';
$expect = '\App\Controllers\Site\CDoc';

$this->assertSame($expects, $router->handle('/'));
$this->assertSame($expect, $router->handle('/'));
}

public function testRouteMatchingHostMultipleFail(): void
Expand All @@ -1780,9 +1780,9 @@ public function testRouteMatchingHostMultipleFail(): void
$routes->get('/', 'Home::index', ['as' => 'home']);
$routes->get('/', '\App\Controllers\Site\CDoc::index', ['hostname' => ['one.domain.com', 'two.domain.com', 'three.domain.com']]);

$expects = '\\' . Home::class;
$expect = '\\' . Home::class;

$this->assertSame($expects, $router->handle('/'));
$this->assertSame($expect, $router->handle('/'));
}

/**
Expand Down

0 comments on commit 105c1f8

Please sign in to comment.