Fixed oversights.

This commit is contained in:
Pachira 2024-10-02 02:09:21 +00:00
parent 44b4445664
commit 2a84a614be
12 changed files with 17 additions and 14 deletions

View file

@ -1 +1 @@
0.2410.20200 0.2410.20209

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBBackend.php // MariaDbBackend.php
// Created: 2021-04-30 // Created: 2021-04-30
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBCharacterSetInfo.php // MariaDbCharacterSetInfo.php
// Created: 2021-05-02 // Created: 2021-05-02
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBConnection.php // MariaDbConnection.php
// Created: 2021-04-30 // Created: 2021-04-30
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBConnectionInfo.php // MariaDbConnectionInfo.php
// Created: 2021-04-30 // Created: 2021-04-30
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBParameter.php // MariaDbParameter.php
// Created: 2021-05-02 // Created: 2021-05-02
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBResult.php // MariaDbResult.php
// Created: 2021-05-02 // Created: 2021-05-02
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBResultLib.php // MariaDbResultLib.php
// Created: 2021-05-02 // Created: 2021-05-02
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBResultNative.php // MariaDbResultNative.php
// Created: 2021-05-02 // Created: 2021-05-02
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBStatement.php // MariaDbStatement.php
// Created: 2021-05-02 // Created: 2021-05-02
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,5 +1,5 @@
<?php <?php
// MariaDBWarning.php // MariaDbWarning.php
// Created: 2021-05-02 // Created: 2021-05-02
// Updated: 2024-10-02 // Updated: 2024-10-02

View file

@ -1,14 +1,14 @@
<?php <?php
// RouterTest.php // RouterTest.php
// Created: 2022-01-20 // Created: 2022-01-20
// Updated: 2024-08-18 // Updated: 2024-10-02
declare(strict_types=1); declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\CoversClass;
use Index\Http\{HttpHeaders,HttpRequest}; 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 * 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(HttpPut::class)]
#[CoversClass(HttpRouter::class)] #[CoversClass(HttpRouter::class)]
#[CoversClass(RouteHandler::class)] #[CoversClass(RouteHandler::class)]
#[CoversClass(RouteHandlerTrait::class)]
final class RouterTest extends TestCase { final class RouterTest extends TestCase {
public function testRouter(): void { public function testRouter(): void {
$router1 = new HttpRouter; $router1 = new HttpRouter;
@ -86,7 +87,9 @@ final class RouterTest extends TestCase {
public function testAttribute(): void { public function testAttribute(): void {
$router = new HttpRouter; $router = new HttpRouter;
$handler = new class extends RouteHandler { $handler = new class implements RouteHandler {
use RouteHandlerTrait;
#[HttpGet('/')] #[HttpGet('/')]
public function getIndex() { public function getIndex() {
return 'index'; return 'index';