Skip to content

Commit 9d0f91c

Browse files
committed
update phpunit config. format codes
1 parent 9261b49 commit 9d0f91c

File tree

6 files changed

+25
-21
lines changed

6 files changed

+25
-21
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/file-parse",
33
"type": "library",
44
"description": "some file parse 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/file-parse",
711
"license": "MIT",
812
"authors": [
@@ -18,7 +22,7 @@
1822
},
1923
"autoload": {
2024
"psr-4": {
21-
"Toolkit\\File\\Parse\\" : "src/"
25+
"Toolkit\\File\\Parse\\": "src/"
2226
}
2327
},
2428
"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>

test/IniParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
namespace Toolkit\File\Parse\Test;
1010

11-
use Toolkit\File\Parse\IniParser;
1211
use PHPUnit\Framework\TestCase;
12+
use Toolkit\File\Parse\IniParser;
1313

1414
/**
1515
* Class IniParserTest

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

test/data/include.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; comments
2-
he='i am in the other file'
2+
he = 'i am in the other file'
33

44
[arr]
55
key = val

test/data/test.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; comments
22
name = join
3-
age=23
3+
age = 23
44

5-
include=import#include.ini
5+
include = import#include.ini
66

77
[sub]
8-
hello=world
8+
hello = world

0 commit comments

Comments
 (0)