Skip to content
This repository was archived by the owner on Jun 17, 2020. It is now read-only.

Commit 9b5e38c

Browse files
committed
update something...
1 parent fdeeab4 commit 9b5e38c

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"suggest": {
2424
"inhere/simple-print-tool": "Very lightweight data printing tools",
2525
"inhere/php-validate": "Very lightweight data validate tool",
26-
"inhere/http": "Very lightweight PSR-7 implements http message component",
2726
"inhere/console": "a lightweight php console application library."
2827
}
2928
}

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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
spl_autoload_register(function ($class) {
1111
$file = null;
1212

13-
if (0 === strpos($class,'MyLib\FileUtilUtil\Example\\')) {
14-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\FileUtilUtil\Example\\')));
13+
if (0 === strpos($class,'MyLib\FileUtil\Example\\')) {
14+
$path = str_replace('\\', '/', substr($class, strlen('MyLib\FileUtil\Example\\')));
1515
$file = dirname(__DIR__) . "/example/{$path}.php";
16-
} elseif (0 === strpos($class,'MyLib\FileUtilUtil\Test\\')) {
17-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\FileUtilUtil\Test\\')));
18-
$file = dirname(__DIR__) . "/{$path}.php";
19-
} elseif (0 === strpos($class,'MyLib\FileUtilUtil\\')) {
20-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\FileUtilUtil\\')));
16+
} elseif (0 === strpos($class,'MyLib\FileUtil\Test\\')) {
17+
$path = str_replace('\\', '/', substr($class, strlen('MyLib\FileUtil\Test\\')));
18+
$file = __DIR__ . "/{$path}.php";
19+
} elseif (0 === strpos($class,'MyLib\FileUtil\\')) {
20+
$path = str_replace('\\', '/', substr($class, strlen('MyLib\FileUtil\\')));
2121
$file = dirname(__DIR__) . "/src/{$path}.php";
2222
}
2323

0 commit comments

Comments
 (0)