Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies #87

Merged
merged 3 commits into from
Nov 27, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.3', '8.2', '8.1', '8.0']
php-version: ['8.3', '8.2', '8.1']
steps:
- uses: actions/checkout@v4
- name: Install PHP
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY composer.json /app

RUN composer install --no-dev --optimize-autoloader

FROM php:8.3-alpine
FROM php:8.2-alpine

COPY . /app

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"monolog/monolog": "^2.1.1",
"pimple/pimple": "^3.2",
"psr/log": "^1.1.4",
"symfony/browser-kit": "^5.4",
"symfony/css-selector": "^5.4",
"symfony/dom-crawler": "^5.4",
"symfony/http-client": "^5.4",
"symfony/yaml": "^5.3",
"symfony/browser-kit": "^6.3",
"symfony/css-selector": "^6.3",
"symfony/dom-crawler": "^6.3",
"symfony/http-client": "^6.3",
"symfony/yaml": "^6.3",
"telegram-bot/api": "^2.3",
"verifiedjoseph/ntfy-php-library": "^4"
},
Expand All @@ -25,7 +25,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^9.3.8"
"phpunit/phpunit": "^10.4"
},
"autoload-dev": {
"psr-4": {
Expand Down
35 changes: 15 additions & 20 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
>
<php>
<ini name="error_reporting" value="-1" />
</php>
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php">
<php>
<ini name="error_reporting" value="-1"/>
</php>
<coverage/>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Config/Rules/AfterDateRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function testInvalidInput(): void
{
self::expectException(\InvalidArgumentException::class);
new AfterDateRule('HelloWorld');
self::assertStringStartsWith('Failed to parse before', self::getExpectedExceptionMessage());
self::expectExceptionMessage('Failed to parse before');
}

public function testPassesValid(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Config/Rules/AfterRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function testInvalidInput(): void
{
self::expectException(\InvalidArgumentException::class);
new AfterRule('HelloWorld');
self::assertStringStartsWith('Failed to parse after', self::getExpectedExceptionMessage());
self::expectExceptionMessage('Failed to parse after');
}

public function testPassesValid(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Config/Rules/BeforeDateRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function testInvalidInput(): void
{
self::expectException(\InvalidArgumentException::class);
new BeforeDateRule('HelloWorld');
self::assertStringStartsWith('Failed to parse before', self::getExpectedExceptionMessage());
self::expectExceptionMessage('Failed to parse before');
}

public function testPassesValid(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Config/Rules/BeforeRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function testInvalidInput(): void
{
self::expectException(\InvalidArgumentException::class);
new BeforeRule('HelloWorld');
self::assertStringStartsWith('Failed to parse before', self::getExpectedExceptionMessage());
self::expectExceptionMessage('Failed to parse before');
}

public function testPassesValid(): void
Expand Down