Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Commit b6eb003

Browse files
committed
bug fixed for test autoload
1 parent 1d4dd51 commit b6eb003

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<phpunit backupGlobals="false"
44
backupStaticAttributes="false"
5-
bootstrap="./tests/boot.php"
5+
bootstrap="test/boot.php"
66
colors="false"
77
convertErrorsToExceptions="true"
88
convertNoticesToExceptions="true"
@@ -12,13 +12,13 @@
1212
>
1313
<testsuites>
1414
<testsuite name="Php Library Test Suite">
15-
<directory>./tests/</directory>
15+
<directory>test/</directory>
1616
</testsuite>
1717
</testsuites>
1818

1919
<filter>
2020
<whitelist>
21-
<directory suffix=".php">./src</directory>
21+
<directory suffix=".php">src</directory>
2222
</whitelist>
2323
</filter>
2424
</phpunit>

‎test/boot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$file = dirname(__DIR__) . "/example/{$path}.php";
1616
} elseif (0 === strpos($class,'MyLib\ArrUtil\Test\\')) {
1717
$path = str_replace('\\', '/', substr($class, strlen('MyLib\ArrUtil\Test\\')));
18-
$file = dirname(__DIR__) . "/{$path}.php";
18+
$file = __DIR__ . "/{$path}.php";
1919
} elseif (0 === strpos($class,'MyLib\ArrUtil\\')) {
2020
$path = str_replace('\\', '/', substr($class, strlen('MyLib\ArrUtil\\')));
2121
$file = dirname(__DIR__) . "/src/{$path}.php";

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /