Skip to content

Commit

Permalink
style: fix the coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
ping-yee committed Oct 14, 2023
1 parent 4727ce4 commit 760a507
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/system/Router/RouteCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace CodeIgniter\Router;

use App\Controllers\Product;
use CodeIgniter\Config\Services;
use CodeIgniter\controller;
use CodeIgniter\Exceptions\PageNotFoundException;
Expand Down Expand Up @@ -1687,7 +1688,7 @@ public function testAutoRoutesControllerNameReturnsFQCN($namespace): void

unlink(APPPATH . 'Controllers/Product.php');

$this->assertSame('\App\\Controllers\\Product', $router->controllerName());
$this->assertSame('\\' . Product::class, $router->controllerName());

Check failure on line 1691 in tests/system/Router/RouteCollectionTest.php

View workflow job for this annotation

GitHub Actions / Psalm Analysis

UndefinedClass

tests/system/Router/RouteCollectionTest.php:1691:34: UndefinedClass: Class, interface or enum named App\Controllers\Product does not exist (see https://psalm.dev/019)
}

/**
Expand All @@ -1710,7 +1711,7 @@ public function testRoutesControllerNameReturnsFQCN($namespace): void

unlink(APPPATH . 'Controllers/Product.php');

$this->assertSame('\App\\Controllers\\Product', $router->controllerName());
$this->assertSame('\\' . Product::class, $router->controllerName());

Check failure on line 1714 in tests/system/Router/RouteCollectionTest.php

View workflow job for this annotation

GitHub Actions / Psalm Analysis

UndefinedClass

tests/system/Router/RouteCollectionTest.php:1714:34: UndefinedClass: Class, interface or enum named App\Controllers\Product does not exist (see https://psalm.dev/019)
}

public function testRoutePriorityDetected(): void
Expand Down

0 comments on commit 760a507

Please sign in to comment.