Skip to content

Commit 1db0a91

Browse files
committed
Bumped phpunit version to 7
1 parent ae1c473 commit 1db0a91

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"openlss/lib-array2xml": "~0.0.9"
2525
},
2626
"require-dev": {
27-
"phpunit/phpunit": "^6.0",
27+
"phpunit/phpunit": "^7.0",
2828
"friendsofphp/php-cs-fixer": "^2.4"
2929
},
3030
"autoload": {

tests/Matcher/JsonMatcherTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,23 @@ public function test_negative_can_match($pattern)
5858
*/
5959
public function test_positive_matches($value, $pattern)
6060
{
61-
$this->assertTrue($this->matcher->match($value, $pattern), $this->matcher->getError());
61+
$this->assertTrue($this->matcher->match($value, $pattern), (string) $this->matcher->getError());
6262
}
6363

6464
/**
6565
* @dataProvider normalizationRequiredDataProvider
6666
*/
6767
public function test_positive_matches_after_normalization($value, $pattern)
6868
{
69-
$this->assertTrue($this->matcher->match($value, $pattern), $this->matcher->getError());
69+
$this->assertTrue($this->matcher->match($value, $pattern), (string) $this->matcher->getError());
7070
}
7171

7272
/**
7373
* @dataProvider negativeMatches
7474
*/
7575
public function test_negative_matches($value, $pattern)
7676
{
77-
$this->assertFalse($this->matcher->match($value, $pattern), $this->matcher->getError());
77+
$this->assertFalse($this->matcher->match($value, $pattern), (string) $this->matcher->getError());
7878
}
7979

8080
public function test_error_when_matching_fail()

tests/Matcher/OrMatcherTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function test_positive_match_arrays($value, $pattern)
2828
{
2929
$this->assertTrue(
3030
$this->matcher->match($value, $pattern),
31-
$this->matcher->getError()
31+
(string) $this->matcher->getError()
3232
);
3333
}
3434

@@ -39,7 +39,7 @@ public function test_negative_match_arrays($value, $pattern)
3939
{
4040
$this->assertFalse(
4141
$this->matcher->match($value, $pattern),
42-
$this->matcher->getError()
42+
(string) $this->matcher->getError()
4343
);
4444
}
4545

@@ -54,7 +54,7 @@ public function test_whitespaces_trim_after_splitting()
5454
'test' => ' @integer@ || @null@ '
5555
]
5656
),
57-
$this->matcher->getError()
57+
(string) $this->matcher->getError()
5858
);
5959
}
6060

tests/Matcher/XmlMatcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ public function test_negative_can_match($pattern)
6363
*/
6464
public function test_positive_matches($value, $pattern)
6565
{
66-
$this->assertTrue($this->matcher->match($value, $pattern), $this->matcher->getError());
66+
$this->assertTrue($this->matcher->match($value, $pattern), (string) $this->matcher->getError());
6767
}
6868

6969
/**
7070
* @dataProvider negativeMatches
7171
*/
7272
public function test_negative_matches($value, $pattern)
7373
{
74-
$this->assertFalse($this->matcher->match($value, $pattern), $this->matcher->getError());
74+
$this->assertFalse($this->matcher->match($value, $pattern), (string) $this->matcher->getError());
7575
}
7676

7777
public static function positivePatterns()

tests/MatcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function test_matcher_with_array_value()
6363
];
6464

6565
$this->assertTrue($this->matcher->match($value, $expectation), $this->matcher->getError());
66-
$this->assertTrue(PHPMatcher::match($value, $expectation, $error), $error);
66+
$this->assertTrue(PHPMatcher::match($value, $expectation, $error), (string) $error);
6767
}
6868

6969
/**
@@ -413,7 +413,7 @@ public function test_null_value_in_the_json($value, $pattern)
413413
$factory = new SimpleFactory();
414414
$matcher = $factory->createMatcher();
415415
$match = $matcher->match($value, $pattern);
416-
$this->assertTrue($match, $matcher->getError());
416+
$this->assertTrue($match, (string) $matcher->getError());
417417
}
418418

419419
public static function nullExamples()

0 commit comments

Comments
 (0)