Skip to content

Commit 65e0684

Browse files
committed
!!!|Raise dependencies to ease maintenance
1 parent da8329f commit 65e0684

7 files changed

Lines changed: 67 additions & 156 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ jobs:
2929
strategy:
3030
matrix:
3131
php-version:
32-
- 7.2
33-
- 7.3
34-
- 7.4
35-
- 8.0
36-
- 8.1
3732
- 8.2
3833
- 8.3
3934
- 8.4
@@ -102,42 +97,6 @@ jobs:
10297
strategy:
10398
matrix:
10499
include:
105-
- db-version: '5.7'
106-
php-version: '7.2'
107-
typo3-version: '^10.4'
108-
- db-version: '5.7'
109-
php-version: '7.3'
110-
typo3-version: '^10.4'
111-
- db-version: '8'
112-
php-version: '7.4'
113-
typo3-version: '^10.4'
114-
- db-version: '8'
115-
php-version: '7.4'
116-
typo3-version: '^11.5'
117-
- db-version: '8'
118-
php-version: '8.0'
119-
typo3-version: '^11.5'
120-
- db-version: '8'
121-
php-version: '8.1'
122-
typo3-version: '^11.5'
123-
- db-version: '8'
124-
php-version: '8.2'
125-
typo3-version: '^11.5'
126-
- db-version: '8'
127-
php-version: '8.3'
128-
typo3-version: '^11.5'
129-
- db-version: '8'
130-
php-version: '8.1'
131-
typo3-version: '^12.4'
132-
- db-version: '8'
133-
php-version: '8.2'
134-
typo3-version: '^12.4'
135-
- db-version: '8'
136-
php-version: '8.3'
137-
typo3-version: '^12.4'
138-
- db-version: '8'
139-
php-version: '8.4'
140-
typo3-version: '^12.4'
141100
- db-version: '8'
142101
php-version: '8.2'
143102
typo3-version: '^13.0'
@@ -189,30 +148,6 @@ jobs:
189148
strategy:
190149
matrix:
191150
include:
192-
- php-version: '7.2'
193-
typo3-version: '^10.4'
194-
- php-version: '7.3'
195-
typo3-version: '^10.4'
196-
- php-version: '7.4'
197-
typo3-version: '^10.4'
198-
- php-version: '7.4'
199-
typo3-version: '^11.5'
200-
- php-version: '8.0'
201-
typo3-version: '^11.5'
202-
- php-version: '8.1'
203-
typo3-version: '^11.5'
204-
- php-version: '8.2'
205-
typo3-version: '^11.5'
206-
- php-version: '8.3'
207-
typo3-version: '^11.5'
208-
- php-version: '8.1'
209-
typo3-version: '^12.4'
210-
- php-version: '8.2'
211-
typo3-version: '^12.4'
212-
- php-version: '8.3'
213-
typo3-version: '^12.4'
214-
- php-version: '8.4'
215-
typo3-version: '^12.4'
216151
- php-version: '8.2'
217152
typo3-version: '^13.4'
218153
- php-version: '8.3'

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v2.0.0 - 2025-10-20
4+
5+
### BREAKING
6+
7+
- Remove support for older dependencies.
8+
The older versions of this package should work just fine.
9+
There is not much more to this package, so no need to stay compatible with all versions.
10+
311
## v1.6.0 - 2025-03-04
412

513
### Added

Tests/Functional/AssertTest.php

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -23,65 +23,56 @@
2323

2424
namespace Codappix\Typo3PhpDatasets\Tests\Functional;
2525

26+
use Codappix\Typo3PhpDatasets\PhpDataSet;
27+
use Codappix\Typo3PhpDatasets\TestingFramework;
2628
use InvalidArgumentException;
2729
use PHPUnit\Framework\AssertionFailedError;
30+
use PHPUnit\Framework\Attributes\CoversClass;
31+
use PHPUnit\Framework\Attributes\Test;
32+
use PHPUnit\Framework\Attributes\TestDox;
2833

29-
/**
30-
* @covers \Codappix\Typo3PhpDatasets\PhpDataSet
31-
* @covers \Codappix\Typo3PhpDatasets\TestingFramework
32-
* @testdox The Testing Framework trait
33-
*/
34+
#[CoversClass(PhpDataSet::class)]
35+
#[CoversClass(TestingFramework::class)]
36+
#[TestDox('The Testing Framework trait')]
3437
class AssertTest extends AbstractFunctionalTestCase
3538
{
36-
/**
37-
* @test
38-
*/
39+
#[Test]
3940
public function canAssertAgainstSimpleSet(): void
4041
{
4142
$this->importPHPDataSet(__DIR__ . '/Fixtures/SimpleSet.php');
4243
$this->assertPHPDataSet(__DIR__ . '/Fixtures/SimpleSet.php');
4344
}
4445

45-
/**
46-
* @test
47-
*/
46+
#[Test]
4847
public function canAssertAgainstNullValue(): void
4948
{
5049
$this->importPHPDataSet(__DIR__ . '/Fixtures/WithNull.php');
5150
$this->assertPHPDataSet(__DIR__ . '/Fixtures/WithNull.php');
5251
}
5352

54-
/**
55-
* @test
56-
*/
53+
#[Test]
5754
public function canAssertAgainstDifferentSetOfColumns(): void
5855
{
5956
$this->importPHPDataSet(__DIR__ . '/Fixtures/WithDifferentColumns.php');
6057
$this->assertPHPDataSet(__DIR__ . '/Fixtures/WithDifferentColumns.php');
6158
}
6259

63-
/**
64-
* @test
65-
*/
60+
#[Test]
6661
public function canAssertMmRelation(): void
6762
{
6863
$this->importPHPDataSet(__DIR__ . '/Fixtures/MmRelation.php');
6964
$this->assertPHPDataSet(__DIR__ . '/Fixtures/MmRelation.php');
7065
}
7166

72-
/**
73-
* @test
74-
*/
67+
#[Test]
7568
public function failsForMissingAssertionWithUid(): void
7669
{
7770
$this->expectException(AssertionFailedError::class);
7871
$this->expectExceptionMessage('Record "pages:1" not found in database');
7972
$this->assertPHPDataSet(__DIR__ . '/Fixtures/AssertSimpleMissingUidSet.php');
8073
}
8174

82-
/**
83-
* @test
84-
*/
75+
#[Test]
8576
public function failsForDifferingAssertionWithUid(): void
8677
{
8778
$this->importPHPDataSet(__DIR__ . '/Fixtures/SimpleSet.php');
@@ -95,9 +86,7 @@ public function failsForDifferingAssertionWithUid(): void
9586
$this->assertPHPDataSet(__DIR__ . '/Fixtures/AssertDifferingWithUid.php');
9687
}
9788

98-
/**
99-
* @test
100-
*/
89+
#[Test]
10190
public function failsForAssertionWithoutUid(): void
10291
{
10392
$this->importPHPDataSet(__DIR__ . '/Fixtures/SimpleSet.php');
@@ -114,9 +103,7 @@ public function failsForAssertionWithoutUid(): void
114103
$this->assertPHPDataSet(__DIR__ . '/Fixtures/AssertDifferingWithoutUid.php');
115104
}
116105

117-
/**
118-
* @test
119-
*/
106+
#[Test]
120107
public function failsForAssertionForMmRelation(): void
121108
{
122109
$this->importPHPDataSet(__DIR__ . '/Fixtures/MmRelation.php');
@@ -138,9 +125,7 @@ public function failsForAssertionForMmRelation(): void
138125
$this->assertPHPDataSet(__DIR__ . '/Fixtures/MmRelationBroken.php');
139126
}
140127

141-
/**
142-
* @test
143-
*/
128+
#[Test]
144129
public function failsForAdditionalNoneAssertedRecords(): void
145130
{
146131
$this->importPHPDataSet(__DIR__ . '/Fixtures/WithDifferentColumns.php');
@@ -150,9 +135,7 @@ public function failsForAdditionalNoneAssertedRecords(): void
150135
$this->assertPHPDataSet(__DIR__ . '/Fixtures/AssertAdditionalRecords.php');
151136
}
152137

153-
/**
154-
* @test
155-
*/
138+
#[Test]
156139
public function throwsExceptionIfFileDoesNotExist(): void
157140
{
158141
$this->expectException(InvalidArgumentException::class);

Tests/Functional/Converter/CsvTest.php

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@
2626
use Codappix\Typo3PhpDatasets\Converter\Csv;
2727
use GlobIterator;
2828
use InvalidArgumentException;
29+
use PHPUnit\Framework\Attributes\CoversClass;
30+
use PHPUnit\Framework\Attributes\DataProvider;
31+
use PHPUnit\Framework\Attributes\Test;
32+
use PHPUnit\Framework\Attributes\TestDox;
2933
use PHPUnit\Framework\TestCase;
3034

31-
/**
32-
* @covers \Codappix\Typo3PhpDatasets\Converter\Csv
33-
* @testdox The CSV converter
34-
*/
35+
#[CoversClass(Csv::class)]
36+
#[TestDox('The CSV converter')]
3537
class CsvTest extends TestCase
3638
{
3739
protected function tearDown(): void
@@ -44,9 +46,7 @@ protected function tearDown(): void
4446
parent::tearDown();
4547
}
4648

47-
/**
48-
* @test
49-
*/
49+
#[Test]
5050
public function canBeCreated(): void
5151
{
5252
$subject = new Csv();
@@ -57,9 +57,7 @@ public function canBeCreated(): void
5757
);
5858
}
5959

60-
/**
61-
* @test
62-
*/
60+
#[Test]
6361
public function throwsExceptionForNoneExistingFile(): void
6462
{
6563
$subject = new Csv();
@@ -69,11 +67,9 @@ public function throwsExceptionForNoneExistingFile(): void
6967
$subject->convert('NoneExistingFile.csv');
7068
}
7169

72-
/**
73-
* @test
74-
* @dataProvider possibleCsvFiles
75-
* @testdox Converts $_dataName CSV to PHP
76-
*/
70+
#[Test]
71+
#[TestDox('Converts $_dataName CSV to PHP')]
72+
#[DataProvider('possibleCsvFiles')]
7773
public function convertsCsvFileToPhpFile(
7874
string $incomingCsvFile,
7975
string $expectedResultFile

Tests/Functional/Converter/XmlTest.php

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@
2626
use Codappix\Typo3PhpDatasets\Converter\Xml;
2727
use GlobIterator;
2828
use InvalidArgumentException;
29+
use PHPUnit\Framework\Attributes\CoversClass;
30+
use PHPUnit\Framework\Attributes\DataProvider;
31+
use PHPUnit\Framework\Attributes\Test;
32+
use PHPUnit\Framework\Attributes\TestDox;
2933
use PHPUnit\Framework\TestCase;
3034

31-
/**
32-
* @covers \Codappix\Typo3PhpDatasets\Converter\Xml
33-
* @testdox The XML converter
34-
*/
35+
#[CoversClass(Xml::class)]
36+
#[TestDox('The XML converter')]
3537
class XmlTest extends TestCase
3638
{
3739
protected function tearDown(): void
@@ -44,9 +46,7 @@ protected function tearDown(): void
4446
parent::tearDown();
4547
}
4648

47-
/**
48-
* @test
49-
*/
49+
#[Test]
5050
public function canBeCreated(): void
5151
{
5252
$subject = new Xml();
@@ -57,9 +57,7 @@ public function canBeCreated(): void
5757
);
5858
}
5959

60-
/**
61-
* @test
62-
*/
60+
#[Test]
6361
public function throwsExceptionForNoneExistingFile(): void
6462
{
6563
$subject = new Xml();
@@ -69,11 +67,9 @@ public function throwsExceptionForNoneExistingFile(): void
6967
$subject->convert('NoneExistingFile.xml');
7068
}
7169

72-
/**
73-
* @test
74-
* @dataProvider possibleXmlFiles
75-
* @testdox Converts $_dataName XML to PHP
76-
*/
70+
#[Test]
71+
#[TestDox('Converts $_dataName XML to PHP')]
72+
#[DataProvider('possibleXmlFiles')]
7773
public function convertsXmlFileToPhpFile(
7874
string $incomingXmlFile,
7975
string $expectedResultFile

0 commit comments

Comments
 (0)