Skip to content

Commit

Permalink
Bump dependencies (#87)
Browse files Browse the repository at this point in the history
* Bump dependencies

* Fix up

* Fix up
  • Loading branch information
inverse authored Nov 27, 2023
1 parent 91e504d commit 305cf94
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 32 deletions.
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

0 comments on commit 305cf94

Please sign in to comment.