Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"php": ">=7.1.0",
"ext-mbstring": "*",
"ext-json": "*",
"justinrainbow/json-schema": "^5.2.10",
"justinrainbow/json-schema": "^6.6",
"nesbot/carbon": "^2.63.0",
"jmikola/geojson": "^1.0"
},
Expand Down
33 changes: 15 additions & 18 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
bootstrap="vendor/autoload.php">
<php>
<ini name="display_errors" value="On" />
<ini name="error_reporting" value="24575" />
</php>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<php>
<ini name="display_errors" value="On"/>
<ini name="error_reporting" value="24575"/>
</php>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
11 changes: 8 additions & 3 deletions tests/SchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,14 @@ public function testSpecsUriFormat(): void
'pointer' => '/0',
// it considers file names to be invalid uris
'message' => 'Invalid URL format',
'constraint' => 'format',
'context' => 1,
'format' => 'uri',
// Constraint errors are arrays since justinrainbow/json-schema:^6
'constraint' => [
'name' => 'urlFormat',
'params' => [
'format' => 'uri'
],
],
'context' => 1
]], $validator->getErrors());
}

Expand Down
Loading