Skip to content

Commit

Permalink
⬆️ update phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Sep 28, 2024
1 parent 44089fe commit 0d6f3be
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
check:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Fix CS
uses: docker://oskarstark/php-cs-fixer-ga
tests:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -33,12 +33,12 @@ jobs:
- description: 'No Symfony specified'
php: '8.2'
- description: 'Lowest deps'
php: '8.0'
php: '8.1'
composer_option: '--prefer-lowest'
env:
SYMFONY_DEPRECATIONS_HELPER: max[self]=0
- description: 'Symfony 5.4'
php: '8.0'
php: '8.1'
symfony: 5.4.*
- description: 'Symfony 6.4'
php: '8.2'
Expand Down
4 changes: 2 additions & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit75Migration:risky' => true,
'@PHP81Migration' => true,
'@PHPUnit100Migration:risky' => true,
'ordered_imports' => true,
'declare_strict_types' => false,
'native_function_invocation' => ['include' => ['@all']],
Expand Down
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ShortId Doctrine Type Bundle
============================
# ShortId Doctrine Type Bundle

[![Total Downloads](https://poser.pugx.org/pugx/shortid-doctrine-bundle/downloads.png)](https://packagist.org/packages/pugx/shortid-doctrine-bundle)
[![Build Status](https://github.com/PUGX/shortid-doctrine-bundle/workflows/Build/badge.svg)](https://github.com/PUGX/shortid-doctrine-bundle/actions)
Expand All @@ -9,17 +8,14 @@ ShortId Doctrine Type Bundle

This bundle is for using [ShortId Doctrine Type](https://github.com/pugx/shortid-doctrine) with Symfony.

Documentation
-------------
## Documentation

[Read the documentation](docs/index.md)

License
-------
## License

This bundle is released under the MIT license. See the [complete license text](Resources/meta/LICENSE).

About
-----
## About

PUGXShortidDoctrineBundle is a [PUGX](https://github.com/PUGX) initiative.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.1",
"pugx/shortid-doctrine": "^1.0",
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6"
"phpunit/phpunit": "^10.5 || ^11.3"
},
"config": {
"bin-dir": "bin",
Expand Down
19 changes: 10 additions & 9 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="vendor/autoload.php" colors="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="PUGXShortIdDoctrineBundle test suite">
<directory suffix="Test.php">tests</directory>
<directory>./tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>
4 changes: 2 additions & 2 deletions tests/PUGXShortidDoctrineBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public function testBoot(): void
$container = $this->createMock(ContainerBuilder::class);
$container->method('hasParameter')->willReturn(true);
$container
->expects(self::exactly(3))
->expects($this->exactly(3))
->method('getParameter')
->willReturnOnConsecutiveCalls(7, $alphabet)
->willReturnOnConsecutiveCalls(7, false, $alphabet)
;
$bundle = new PUGXShortidDoctrineBundle();
$bundle->setContainer($container);
Expand Down

0 comments on commit 0d6f3be

Please sign in to comment.