1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 5 Oct 2019 16:14:35 -1000
Subject: Use existing path for CI
---
tests/Uri/UriRetrieverTest.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/Uri/UriRetrieverTest.php b/tests/Uri/UriRetrieverTest.php
index c368954..d0d4fb7 100644
--- a/tests/Uri/UriRetrieverTest.php
+++ b/tests/Uri/UriRetrieverTest.php
@@ -288,7 +288,7 @@ EOF;
public function testPackageURITranslation()
{
$retriever = new UriRetriever();
- $root = sprintf('file://%s/', realpath(__DIR__ . '/../..'));
+ $root = sprintf('file://%s/', realpath('/usr/share/php/data/JsonSchema'));
$uri = $retriever->translate('package://foo/bar.json');
$this->assertEquals("${root}foo/bar.json", $uri);
@@ -297,7 +297,7 @@ EOF;
public function testDefaultDistTranslations()
{
$retriever = new UriRetriever();
- $root = sprintf('file://%s/dist/schema/', realpath(__DIR__ . '/../..'));
+ $root = sprintf('file://%s/dist/schema/', realpath('/usr/share/php/data/JsonSchema'));
$this->assertEquals(
$root . 'json-schema-draft-03.json',
@@ -379,7 +379,7 @@ EOF;
'JsonSchema\Exception\JsonDecodingException',
'JSON syntax is malformed'
);
- $schema = $retriever->retrieve('package://tests/fixtures/bad-syntax.json');
+ $schema = $retriever->retrieve(__DIR__ . '/../fixtures/bad-syntax.json', __DIR__);
}
public function testGenerateURI()
|