Skip to content

Commit 5e5f1bb

Browse files
committed
moved fixtures to tests directory
1 parent 01a1946 commit 5e5f1bb

34 files changed

+79
-76
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"license": "MIT",
1515
"autoload": {
1616
"psr-4": {
17-
"Differ\\": "src/"
17+
"Differ\\": "src/",
18+
"Differ\\Tests\\": "tests/"
1819
},
1920
"files": [
2021
"vendor/docopt/docopt/src/docopt.php"

phpunit.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
failOnWarning="true">
1414
<testsuites>
1515
<testsuite name="default">
16-
<directory>tests</directory>
16+
<directory>tests/Unit</directory>
1717
</testsuite>
1818
</testsuites>
19+
<php>
20+
<env name="FIXTURES_PATH" value="./tests/Fixtures"/>
21+
</php>
1922

2023
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
2124
<include>

src/Parsers/DocoptDouble.php renamed to tests/Fixtures/DocoptDouble.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Differ\Parsers;
3+
namespace Differ\Tests\Fixtures;
44

55
use Differ\Interfaces\DocoptDoubleInterface;
66

@@ -17,8 +17,8 @@ public function __construct(string $format = "stylish")
1717
"--help" => "",
1818
"--version" => "",
1919
"--format" => $format,
20-
"FILE1" => __DIR__ . "/../../fixtures/file1.json",
21-
"FILE2" => __DIR__ . "/../../fixtures/file2.json"
20+
"FILE1" => $_ENV["FIXTURES_PATH"] . "/file1.json",
21+
"FILE2" => $_ENV["FIXTURES_PATH"] . "/file2.json"
2222
];
2323
}
2424

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)