Skip to content

Commit 280b574

Browse files
committed
Unit tests have been implemented, phpunit.xml configuration file has been added, dependencies have been updated.
1 parent fe7465a commit 280b574

File tree

9 files changed

+2103
-37
lines changed

9 files changed

+2103
-37
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor/
22
/public/
3-
.env
3+
.env
4+
.phpunit.result.cache

app/Console/RSACommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Console;
44

55
use Symfony\Component\Console\Command\Command;
6-
use Symfony\Component\Console\Input\{ InputInterface, InputArgument };
6+
use Symfony\Component\Console\Input\InputInterface;
77
use Symfony\Component\Console\Output\OutputInterface;
88
use Symfony\Component\Console\Helper\ProgressBar;
99
use LionSecurity\RSA;

composer.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,35 @@
44
"type": "project",
55
"license": "MIT",
66
"keywords": ["lion", "framework", "lion-framework"],
7-
"autoload": {
8-
"psr-4": {
9-
"App\\": "app/"
10-
}
11-
},
127
"authors": [
138
{
149
"name": "Sergio León",
1510
"email": "sergioleon4004@hotmail.com"
1611
}
1712
],
13+
"autoload": {
14+
"psr-4": {
15+
"App\\": "app/"
16+
}
17+
},
18+
"autoload-dev": {
19+
"psr-4": {
20+
"Tests\\": "tests/"
21+
}
22+
},
1823
"require": {
1924
"php": ">=8.1",
20-
"lion-framework/lion-route": "^2.0",
2125
"lion-framework/lion-mailer": "^1.5",
2226
"lion-framework/lion-security": "^6.2",
2327
"lion-framework/lion-sql": "^4.0",
2428
"lion-framework/lion-files": "^4.1",
2529
"lion-framework/lion-command": "^1.2",
30+
"lion-framework/lion-route": "^2.1",
2631
"nesbot/carbon": "^2.57"
2732
},
33+
"require-dev": {
34+
"phpunit/phpunit": "^9.5"
35+
},
2836
"scripts": {
2937
"post-root-package-install": [
3038
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""

0 commit comments

Comments
 (0)