Fixed oversights.
This commit is contained in:
parent
44b4445664
commit
2a84a614be
12 changed files with 17 additions and 14 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.2410.20200
|
||||
0.2410.20209
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBBackend.php
|
||||
// MariaDbBackend.php
|
||||
// Created: 2021-04-30
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBCharacterSetInfo.php
|
||||
// MariaDbCharacterSetInfo.php
|
||||
// Created: 2021-05-02
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBConnection.php
|
||||
// MariaDbConnection.php
|
||||
// Created: 2021-04-30
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBConnectionInfo.php
|
||||
// MariaDbConnectionInfo.php
|
||||
// Created: 2021-04-30
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBParameter.php
|
||||
// MariaDbParameter.php
|
||||
// Created: 2021-05-02
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBResult.php
|
||||
// MariaDbResult.php
|
||||
// Created: 2021-05-02
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBResultLib.php
|
||||
// MariaDbResultLib.php
|
||||
// Created: 2021-05-02
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBResultNative.php
|
||||
// MariaDbResultNative.php
|
||||
// Created: 2021-05-02
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBStatement.php
|
||||
// MariaDbStatement.php
|
||||
// Created: 2021-05-02
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// MariaDBWarning.php
|
||||
// MariaDbWarning.php
|
||||
// Created: 2021-05-02
|
||||
// Updated: 2024-10-02
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
// RouterTest.php
|
||||
// Created: 2022-01-20
|
||||
// Updated: 2024-08-18
|
||||
// Updated: 2024-10-02
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use Index\Http\{HttpHeaders,HttpRequest};
|
||||
use Index\Http\Routing\{HttpGet,HttpMiddleware,HttpPost,HttpPut,HttpRouter,RouteHandler};
|
||||
use Index\Http\Routing\{HttpGet,HttpMiddleware,HttpPost,HttpPut,HttpRouter,RouteHandler,RouteHandlerTrait};
|
||||
|
||||
/**
|
||||
* This test isn't super representative of the current functionality
|
||||
|
@ -20,6 +20,7 @@ use Index\Http\Routing\{HttpGet,HttpMiddleware,HttpPost,HttpPut,HttpRouter,Route
|
|||
#[CoversClass(HttpPut::class)]
|
||||
#[CoversClass(HttpRouter::class)]
|
||||
#[CoversClass(RouteHandler::class)]
|
||||
#[CoversClass(RouteHandlerTrait::class)]
|
||||
final class RouterTest extends TestCase {
|
||||
public function testRouter(): void {
|
||||
$router1 = new HttpRouter;
|
||||
|
@ -86,7 +87,9 @@ final class RouterTest extends TestCase {
|
|||
|
||||
public function testAttribute(): void {
|
||||
$router = new HttpRouter;
|
||||
$handler = new class extends RouteHandler {
|
||||
$handler = new class implements RouteHandler {
|
||||
use RouteHandlerTrait;
|
||||
|
||||
#[HttpGet('/')]
|
||||
public function getIndex() {
|
||||
return 'index';
|
||||
|
|
Loading…
Reference in a new issue