Skip to content

Commit 98c6db3

Browse files
committed
PHP 8
1 parent 405a4a0 commit 98c6db3

File tree

5 files changed

+39
-35
lines changed

5 files changed

+39
-35
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
2+
.phpunit.result.cache
23
composer.phar
34
vendor/
45
build/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Gregory Baboolal
3+
Copyright (c) 2021 Gregory Baboolal
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
## Mvc5 Framework Demo Application
22
[**https://mvc5.github.io**](https://mvc5.github.io)
33

4-
A PHP 7 programming environment with immutable components.
4+
A PHP 8 programming environment with immutable components.

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mvc5/mvc5-application",
3-
"description": "A PHP 7 programming environment with named arguments.",
3+
"description": "A PHP 8 programming environment with named arguments.",
44
"keywords": ["config", "container", "dependency injection", "event", "middleware", "plugin", "psr-11", "psr", "route", "router", "view"],
55
"homepage": "https://github.com/mvc5/mvc5-application",
66
"license": "MIT",
@@ -11,24 +11,24 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.4",
14+
"php": "^8.0",
1515
"ext-json": "*",
16-
"mvc5/mvc5": "^14.0",
17-
"mvc5/view": "^10.0",
18-
"mvc5/facade": "^9.0",
19-
"mvc5/http-message": "^9.0"
16+
"mvc5/mvc5": "^15.0",
17+
"mvc5/view": "^11.0",
18+
"mvc5/facade": "^10.0",
19+
"mvc5/http-message": "^10.0"
2020
},
2121
"autoload": {
2222
"psr-4": {
2323
"": "./src"
2424
}
2525
},
2626
"require-dev": {
27-
"phpunit/phpunit": "^9.0",
28-
"mvc5/mvc5-tests": "^14.0",
27+
"phpunit/phpunit": "^9.5.4",
28+
"mvc5/mvc5-tests": "^15.0",
2929
"guzzlehttp/guzzle": "^6.5",
30-
"vimeo/psalm": "^3.9.5",
31-
"phpstan/phpstan": "^0.12.17",
32-
"phpmetrics/phpmetrics": "^2.5"
30+
"vimeo/psalm": "^4.7.2",
31+
"phpstan/phpstan": "^0.12.86",
32+
"phpmetrics/phpmetrics": "^2.7.4"
3333
}
3434
}

phpunit.xml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="./vendor/autoload.php"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
bootstrap="./vendor/autoload.php"
35
backupGlobals="false"
46
backupStaticAttributes="false"
57
colors="true"
@@ -8,25 +10,26 @@
810
convertWarningsToExceptions="true"
911
processIsolation="false"
1012
stopOnFailure="true">
11-
<testsuites>
12-
<testsuite name="App Test Suite">
13-
<file>tests/Api/ClientTest.php</file>
14-
<file>tests/Api/ControllerTest.php</file>
15-
</testsuite>
16-
<testsuite name="Mvc5 Test Suite">
17-
<directory>./vendor/mvc5/mvc5-tests/src</directory>
18-
</testsuite>
19-
<testsuite name="Valar Test Suite">
20-
<directory>./vendor/mvc5/http-message/tests</directory>
21-
</testsuite>
22-
</testsuites>
23-
<filter>
24-
<whitelist processUncoveredFilesFromWhitelist="true">
25-
<directory suffix=".php">./vendor/mvc5/mvc5/src</directory>
26-
<directory suffix=".php">./vendor/mvc5/http-message/src</directory>
27-
</whitelist>
28-
</filter>
29-
<logging>
30-
<log type="coverage-html" target="build/logs/report" showUncoveredFiles="true"/>
31-
</logging>
13+
<coverage processUncoveredFiles="true">
14+
<include>
15+
<directory suffix=".php">./vendor/mvc5/mvc5/src</directory>
16+
<directory suffix=".php">./vendor/mvc5/http-message/src</directory>
17+
</include>
18+
<report>
19+
<html outputDirectory="build/logs/report"/>
20+
</report>
21+
</coverage>
22+
<testsuites>
23+
<testsuite name="App Test Suite">
24+
<file>tests/Api/ClientTest.php</file>
25+
<file>tests/Api/ControllerTest.php</file>
26+
</testsuite>
27+
<testsuite name="Mvc5 Test Suite">
28+
<directory>./vendor/mvc5/mvc5-tests/src</directory>
29+
</testsuite>
30+
<testsuite name="Valar Test Suite">
31+
<directory>./vendor/mvc5/http-message/tests</directory>
32+
</testsuite>
33+
</testsuites>
34+
<logging/>
3235
</phpunit>

0 commit comments

Comments
 (0)