Skip to content

Commit a0ed77c

Browse files
committed
Fixed unit tests due to redeclared functions
1 parent 8c1572b commit a0ed77c

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
},
2727
"autoload-dev": {
2828
"files": [
29-
"vendor/phpunit/phpunit/src/Framework/Assert/Functions.php",
3029
"src/Functions.php"
3130
]
3231
},

tests/Functional/JsonValueMatchesFluentTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ class JsonValueMatchesFluentTest extends TestCase
2828

2929
public function testAssertThatJsonDocumentContainsJsonValue()
3030
{
31-
assertThat(self::$exampleDocument, containsJsonValue('$.identifier', 1234));
31+
$this->assertThat(self::$exampleDocument, containsJsonValue('$.identifier', 1234));
3232
}
3333

3434
public function testAssertThatJsonDocumentMatchesJsonConstraints()
3535
{
36-
assertThat(
36+
$this->assertThat(
3737
self::$exampleDocument,
3838
matchesJsonConstraints(
3939
[
40-
'$.owner.name' => equalTo('Max Mustermann'),
41-
'$.products[*].identifier' => greaterThanOrEqual(500),
42-
'$.products[*].name' => logicalNot(equalTo('Weißbrot'))
40+
'$.owner.name' => $this->equalTo('Max Mustermann'),
41+
'$.products[*].identifier' => $this->greaterThanOrEqual(500),
42+
'$.products[*].name' => $this->logicalNot($this->equalTo('Weißbrot'))
4343
]
4444
)
4545
);
4646
}
47-
}
47+
}

tests/Functional/JsonValueMatchesSchemaFluentTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class JsonValueMatchesSchemaFluentTest extends TestCase
3131

3232
public function testJsonDocumentMatchesSchema()
3333
{
34-
assertThat(static::$exampleDocument, matchesJsonSchema([
34+
$this->assertThat(static::$exampleDocument, matchesJsonSchema([
3535
'type' => 'object',
3636
'required' => ['identifier', 'owner', 'products'],
3737
'properties' => [
@@ -64,7 +64,7 @@ public function testJsonDocumentDoesNotMatchSchema()
6464
{
6565
$this->expectException(AssertionFailedError::class);
6666

67-
assertThat(static::$exampleDocument, matchesJsonSchema([
67+
$this->assertThat(static::$exampleDocument, matchesJsonSchema([
6868
'type' => 'object',
6969
'required' => ['foobar'],
7070
'properties' => [

0 commit comments

Comments
 (0)