Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.0/phpunit.xsd"
backupGlobals="false"
backupStaticProperties="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/13.0/phpunit.xsd"
bootstrap="config/bootstrap.test.php"
cacheDirectory="tests/PHPUnit/build/cache"
cacheResult="true"
colors="true"
columns="80"
defaultTestSuite="All-Test"
displayDetailsOnIncompleteTests="true"
displayDetailsOnSkippedTests="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
processIsolation="false"
stopOnDefect="true"
stopOnError="true"
stopOnFailure="true"
stopOnWarning="true"
testdox="false"
>
<php>
<env name="APP_ENV" value="testing" />

<ini name="date.timezone" value="America/Bogota" />
<ini name="intl.default_locale" value="C.UTF-8" />
<ini name="memory_limit" value="2048M" />
<env name="APP_ENV" value="testing"/>
<ini name="date.timezone" value="America/Bogota"/>
<ini name="memory_limit" value="2048M"/>
</php>

<source>
Expand Down
8 changes: 1 addition & 7 deletions routes/middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,15 @@

declare(strict_types=1);

use Lion\Bundle\Middleware\HttpsMiddleware;
use Lion\Bundle\Middleware\RouteMiddleware;
use Lion\Bundle\Support\Http\Routes;

Routes::setMiddleware([

/**
* [Protects the route which provides the list of available routes]
* Protects the route which provides the list of available routes.
*/

'protect-route-list' => RouteMiddleware::class,

/**
* [Filters that request via HTTPS]
*/
'https' => HttpsMiddleware::class,

]);