Skip to content

Commit 573ac48

Browse files
committed
Run CI on PHP 8.5, update actions to latest, misc. readme updates
1 parent 3c45941 commit 573ac48

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,34 @@ jobs:
1515
- '8.2'
1616
- '8.3'
1717
- '8.4'
18+
- '8.5'
1819
dependency:
1920
- ''
2021
symfony:
2122
- '5.4.*'
2223
- '6.4.*'
2324
- '7.3.*'
25+
- '7.4.*'
26+
- '8.0.*'
2427
include:
2528
- php: '8.1'
2629
symfony: '5.4.*'
2730
dependency: 'lowest'
28-
- php: '8.4'
29-
symfony: '7.4.*@dev'
30-
dependency: ''
31-
- php: '8.4'
32-
symfony: '8.0.*@dev'
33-
dependency: ''
3431
exclude:
3532
- php: '8.1'
3633
symfony: '7.3.*'
34+
- php: '8.1'
35+
symfony: '7.4.*'
36+
- php: '8.1'
37+
symfony: '8.0.*'
38+
- php: '8.2'
39+
symfony: '8.0.*'
40+
- php: '8.3'
41+
symfony: '8.0.*'
3742
fail-fast: false
3843
steps:
3944
- name: Checkout
40-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
4146

4247
- name: Setup PHP
4348
uses: shivammathur/setup-php@v2

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ validity of the resulting config node tree, this library provides a PHPUnit test
1212

1313
Using Composer:
1414

15-
composer require --dev matthiasnoback/symfony-config-test
15+
```bash
16+
composer require --dev matthiasnoback/symfony-config-test
17+
```
1618

1719
## Usage
1820

@@ -22,9 +24,9 @@ Then implement ``getConfiguration()``:
2224
```php
2325
<?php
2426

27+
use App\Configuration;
2528
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
2629
use PHPUnit\Framework\TestCase;
27-
use App\Configuration;
2830

2931
class ConfigurationTest extends TestCase
3032
{
@@ -75,15 +77,14 @@ When you provide an empty array as the value for this configuration, you would e
7577
<?php
7678

7779
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
80+
use PHPUnit\Framework\Attributes\Test;
7881
use PHPUnit\Framework\TestCase;
7982

8083
class ConfigurationTest extends TestCase
8184
{
8285
use ConfigurationTestCaseTrait;
8386

84-
/**
85-
* @test
86-
*/
87+
#[Test]
8788
public function values_are_invalid_if_required_value_is_not_provided(): void
8889
{
8990
$this->assertConfigurationIsInvalid(
@@ -104,15 +105,14 @@ You may also want to verify that after processing an array of configuration valu
104105
<?php
105106

106107
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
108+
use PHPUnit\Framework\Attributes\Test;
107109
use PHPUnit\Framework\TestCase;
108110

109111
class ConfigurationTest extends TestCase
110112
{
111113
use ConfigurationTestCaseTrait;
112114

113-
/**
114-
* @test
115-
*/
115+
#[Test]
116116
public function processed_value_contains_required_value(): void
117117
{
118118
$this->assertProcessedConfigurationEquals([
@@ -177,9 +177,7 @@ If you want to test, for instance, only the `array_node_1` branch from the examp
177177
provide `array_node_1` as the argument for the `$breadcrumbPath` parameter of the test helper functions, for example:
178178

179179
```php
180-
/**
181-
* @test
182-
*/
180+
#[Test]
183181
public function processed_configuration_for_array_node_1(): void
184182
{
185183
$this->assertProcessedConfigurationEquals(
@@ -244,9 +242,7 @@ If you want to test whether `default_value` is set to `foobar` by default, but d
244242
requirements on `required_value` node, you can define its path as `array_node.*.default_value`, for example:
245243

246244
```php
247-
/**
248-
* @test
249-
*/
245+
#[Test]
250246
public function processed_configuration_for_array_node_1(): void
251247
{
252248
$this->assertProcessedConfigurationEquals(

0 commit comments

Comments
 (0)