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
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Mon, 16 Nov 2015 21:46:49 -0400
Subject: Adapt /res path
Forwarded: not-needed
---
src/SpdxLicenses.php | 2 +-
tests/SpdxLicensesTest.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/SpdxLicenses.php b/src/SpdxLicenses.php
index 7b94b24..f9a529b 100644
--- a/src/SpdxLicenses.php
+++ b/src/SpdxLicenses.php
@@ -213,7 +213,7 @@ class SpdxLicenses
*/
public static function getResourcesDir()
{
- return dirname(__DIR__) . '/res';
+ return dirname(__DIR__) . '/../data/Composer/res';
}
/**
diff --git a/tests/SpdxLicensesTest.php b/tests/SpdxLicensesTest.php
index 1dceea8..7e90aea 100644
--- a/tests/SpdxLicensesTest.php
+++ b/tests/SpdxLicensesTest.php
@@ -78,7 +78,7 @@ class SpdxLicensesTest extends TestCase
$this->assertEquals(
realpath($dir),
- realpath(__DIR__ . '/../res'),
+ realpath(__DIR__ . '/../../data/Composer/res'),
'Expected resources directory to be "res" (relative to project root).'
);
}
|