Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0', '8.1']
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']

name: PHPUnit ${{ matrix.php-versions }}

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@

*.cache
composer.lock

.idea/
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
],
"minimum-stability": "stable",
"require": {
"php": ">=7.2.0",
"php": ">=8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-zip": "*",
"composer/semver": "^3.0",
"desarrolla2/cache": "^3.0",
"monolog/monolog": "^2.1",
"psr/log": "^1.0|^2.0|^3.0"
"psr/log": "^1.0|^2.0|^3.0",
"psr/simple-cache": "^1.0|^2.0|^3.0"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"phpunit/phpunit": "^9.5"
"monolog/monolog": "^3.9",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-master"
},
"autoload": {
"psr-4": {
"VisualAppeal\\": "src/"
}
},
"scripts": {
"test": "phpunit -c tests/UnitTests.xml"
"test": "phpunit"
},
"config": {
"sort-packages": true
Expand Down
4 changes: 1 addition & 3 deletions example/client/update/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
echo 'New Version: ' . $update->getLatestVersion() . '<br>';
echo 'Installing Updates: <br>';
echo '<pre>';
var_dump(array_map(function ($version) {
return (string) $version;
}, $update->getVersionsToUpdate()));
var_dump(array_map(fn($version) => (string) $version, $update->getVersionsToUpdate()));
echo '</pre>';

// Optional - empty log file
Expand Down
27 changes: 27 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResultFile=".phpunit.cache/test-results"
executionOrder="depends,defects"
forceCoversAnnotation="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
convertDeprecationsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
verbose="true">
<testsuites>
<testsuite name="unit">
<directory>tests</directory>
</testsuite>
</testsuites>

<coverage cacheDirectory=".phpunit.cache/code-coverage"
processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
</phpunit>
Loading