Skip to content

Commit 3d879e1

Browse files
committed
update phpunit config. format codes
1 parent cf0ebbd commit 3d879e1

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"name": "toolkit/sys-utils",
33
"type": "library",
44
"description": "some system tool library of the php",
5-
"keywords": ["library","tool","php"],
5+
"keywords": [
6+
"library",
7+
"tool",
8+
"php"
9+
],
610
"homepage": "https://github.com/php-toolkit/sys-utils",
711
"license": "MIT",
812
"authors": [
@@ -17,7 +21,7 @@
1721
},
1822
"autoload": {
1923
"psr-4": {
20-
"Toolkit\\Sys\\" : "src/"
24+
"Toolkit\\Sys\\": "src/"
2125
}
2226
},
2327
"suggest": {

phpunit.xml.dist

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
convertNoticesToExceptions="true"
99
convertWarningsToExceptions="true"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
11+
1212
>
13-
<testsuites>
14-
<testsuite name="Php Library Test Suite">
15-
<directory>test/</directory>
16-
</testsuite>
17-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Php Library Test Suite">
15+
<directory>test/</directory>
16+
</testsuite>
17+
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
2424
</phpunit>

src/ProcessUtil.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ public static function killAndWait(
272272
$name = 'process',
273273
bool $force = false,
274274
int $waitTime = 10
275-
): bool {
275+
): bool
276+
{
276277
// do stop
277278
if (!self::kill($pid, $force)) {
278279
$error = "Send stop signal to the $name(PID:$pid) failed!";

test/boot.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
spl_autoload_register(function ($class) {
1111
$file = null;
1212

13-
if (0 === strpos($class,'Toolkit\Sys\Example\\')) {
13+
if (0 === strpos($class, 'Toolkit\Sys\Example\\')) {
1414
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\Sys\Example\\')));
1515
$file = dirname(__DIR__) . "/example/{$path}.php";
16-
} elseif (0 === strpos($class,'Toolkit\Sys\Test\\')) {
16+
} elseif (0 === strpos($class, 'Toolkit\Sys\Test\\')) {
1717
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\Sys\Test\\')));
1818
$file = __DIR__ . "/{$path}.php";
19-
} elseif (0 === strpos($class,'Toolkit\Sys\\')) {
19+
} elseif (0 === strpos($class, 'Toolkit\Sys\\')) {
2020
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\Sys\\')));
2121
$file = dirname(__DIR__) . "/src/{$path}.php";
2222
}

0 commit comments

Comments
 (0)