Skip to content

Commit 105c1f8

Browse files
committed
refactor: rename variable
1 parent dea605b commit 105c1f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/system/Router/RouteCollectionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,9 +1760,9 @@ public function testRouteMatchingHostMultipleCorrect(): void
17601760
$routes->get('/', 'Home::index', ['as' => 'home']);
17611761
$routes->get('/', '\App\Controllers\Site\CDoc::index', ['hostname' => ['one.domain.com', 'two.domain.com', 'three.domain.com']]);
17621762

1763-
$expects = '\App\Controllers\Site\CDoc';
1763+
$expect = '\App\Controllers\Site\CDoc';
17641764

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

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

1783-
$expects = '\\' . Home::class;
1783+
$expect = '\\' . Home::class;
17841784

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

17881788
/**

0 commit comments

Comments
 (0)