Skip to content

Commit 814d245

Browse files
committed
fix directory specified
1 parent 5b6a5f0 commit 814d245

10 files changed

+10
-25
lines changed

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
"Aura\\Uri\\": "src/"
2222
}
2323
},
24+
"autoload-dev": {
25+
"psr-4": {
26+
"Aura\\Uri\\": "tests/"
27+
}
28+
},
2429
"conflict": {
2530
"aura/uri": "*"
2631
}

phpunit.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<testsuites>
1414
<testsuite name="testsuite for Uri">
15-
<directory>./tests/Aura/Uri</directory>
15+
<directory>./tests/</directory>
1616
</testsuite>
1717
</testsuites>
1818
<filter>

tests/Aura/Uri/CheckPublicSuffixTest.php tests/CheckPublicSuffixTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CheckPublicSuffixTest extends TestCase
2020
public function setUp() : void
2121
{
2222
parent::setUp();
23-
$file = dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR
23+
$file = dirname(__DIR__) . DIRECTORY_SEPARATOR
2424
. 'data' . DIRECTORY_SEPARATOR
2525
. 'public-suffix-list.php';
2626
$this->psl = new PublicSuffixList(require $file);

tests/Aura/Uri/HostTest.php tests/HostTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function setUp() : void
1515
{
1616
parent::setUp();
1717

18-
$file = dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR
18+
$file = dirname(__DIR__) . DIRECTORY_SEPARATOR
1919
. 'data' . DIRECTORY_SEPARATOR
2020
. 'public-suffix-list.php';
2121
$psl = new PublicSuffixList(require $file);
File renamed without changes.

tests/Aura/Uri/PublicSuffixListTest.php tests/PublicSuffixListTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class PublicSuffixListTest extends TestCase
1515
public function setUp() : void
1616
{
1717
parent::setUp();
18-
$file = dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR
18+
$file = dirname(__DIR__) . DIRECTORY_SEPARATOR
1919
. 'data' . DIRECTORY_SEPARATOR
2020
. 'public-suffix-list.php';
2121
$this->psl = new PublicSuffixList(require $file);
File renamed without changes.
File renamed without changes.

tests/Aura/Uri/UrlTest.php tests/UrlTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UrlTest extends TestCase
3232
public function setUp() : void
3333
{
3434
parent::setUp();
35-
$file = dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR
35+
$file = dirname(__DIR__) . DIRECTORY_SEPARATOR
3636
. 'data' . DIRECTORY_SEPARATOR
3737
. 'public-suffix-list.php';
3838
$this->psl = new PublicSuffixList(require $file);

tests/bootstrap.php

-20
This file was deleted.

0 commit comments

Comments
 (0)