Skip to content
This repository was archived by the owner on Dec 7, 2018. It is now read-only.

Commit 48ad11f

Browse files
Make this extension compatible with PHPUnit 7
1 parent 0fa4329 commit 48ad11f

6 files changed

+23
-15
lines changed

ChangeLog.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to DbUnit are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [4.0.0] - 2018-MM-DD
6+
7+
### Removed
8+
9+
* This extension now requires PHPUnit 7
10+
* This extension is no longer supported on PHP 7.0
11+
512
## [3.0.3] - 2018-01-23
613

714
### Fixed
@@ -16,7 +23,7 @@ All notable changes to DbUnit are documented in this file using the [Keep a CHAN
1623

1724
### Changed
1825

19-
* This component is now compatible with Symfony Console 4
26+
* This extension is now compatible with Symfony Console 4
2027

2128
## [3.0.1] - 2017-10-19
2229

@@ -36,6 +43,7 @@ All notable changes to DbUnit are documented in this file using the [Keep a CHAN
3643

3744
* The `dbunit` CLI tool was removed
3845

46+
[4.0.0]: https://github.com/sebastianbergmann/dbunit/compare/3.0.3...4.0.0
3947
[3.0.3]: https://github.com/sebastianbergmann/dbunit/compare/3.0.2...3.0.3
4048
[3.0.2]: https://github.com/sebastianbergmann/dbunit/compare/3.0.1...3.0.2
4149
[3.0.1]: https://github.com/sebastianbergmann/dbunit/compare/3.0.0...3.0.1

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"issues": "https://github.com/sebastianbergmann/dbunit/issues"
2121
},
2222
"require": {
23-
"php": "^7.0",
24-
"phpunit/phpunit": "^6.0",
23+
"php": "^7.1",
24+
"phpunit/phpunit": "^7.0",
2525
"symfony/yaml": "^3.0 || ^4.0",
2626
"ext-pdo": "*",
2727
"ext-simplexml": "*"
@@ -33,7 +33,7 @@
3333
},
3434
"extra": {
3535
"branch-alias": {
36-
"dev-master": "3.0.x-dev"
36+
"dev-master": "4.0-dev"
3737
}
3838
}
3939
}

manifest.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<phar xmlns="https://phar.io/xml/manifest/1.0">
3-
<contains name="phpunit/dbunit" version="3.0.3" type="extension">
4-
<extension for="phpunit/phpunit" compatible="^6.0"/>
3+
<contains name="phpunit/dbunit" version="4.0.0" type="extension">
4+
<extension for="phpunit/phpunit" compatible="^7.0"/>
55
</contains>
66

77
<copyright>
@@ -10,6 +10,6 @@
1010
</copyright>
1111

1212
<requires>
13-
<php version="^7.0"/>
13+
<php version="^7.1"/>
1414
</requires>
1515
</phar>

src/Constraint/DataSetIsEqual.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(IDataSet $value)
5050
*
5151
* @return bool
5252
*/
53-
protected function matches($other)
53+
protected function matches($other): bool
5454
{
5555
if (!$other instanceof IDataSet) {
5656
throw new InvalidArgumentException(
@@ -71,7 +71,7 @@ protected function matches($other)
7171
*
7272
* @return string
7373
*/
74-
protected function failureDescription($other)
74+
protected function failureDescription($other): string
7575
{
7676
return $other->__toString() . ' ' . $this->toString();
7777
}
@@ -81,7 +81,7 @@ protected function failureDescription($other)
8181
*
8282
* @return string
8383
*/
84-
public function toString()
84+
public function toString(): string
8585
{
8686
return \sprintf(
8787
'is equal to expected %s', $this->value->__toString()

src/Constraint/TableIsEqual.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(ITable $value)
5050
*
5151
* @return bool
5252
*/
53-
protected function matches($other)
53+
protected function matches($other): bool
5454
{
5555
if (!$other instanceof ITable) {
5656
throw new InvalidArgumentException(
@@ -71,7 +71,7 @@ protected function matches($other)
7171
*
7272
* @return string
7373
*/
74-
protected function failureDescription($other)
74+
protected function failureDescription($other): string
7575
{
7676
return $other->__toString() . ' ' . $this->toString();
7777
}
@@ -81,7 +81,7 @@ protected function failureDescription($other)
8181
*
8282
* @return string
8383
*/
84-
public function toString()
84+
public function toString(): string
8585
{
8686
return \sprintf(
8787
'is equal to expected %s', $this->value->__toString()

src/Constraint/TableRowCount.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct($tableName, $value)
5050
*
5151
* @return bool
5252
*/
53-
protected function matches($other)
53+
protected function matches($other): bool
5454
{
5555
return $other == $this->value;
5656
}
@@ -60,7 +60,7 @@ protected function matches($other)
6060
*
6161
* @return string
6262
*/
63-
public function toString()
63+
public function toString(): string
6464
{
6565
return \sprintf('is equal to expected row count %d', $this->value);
6666
}

0 commit comments

Comments
 (0)