Skip to content

Commit acb87be

Browse files
committed
rename tests, examples to test, example
1 parent 81411dc commit acb87be

17 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ public function getRaw(string $key, $default = null)
808808

809809
## 代码示例
810810

811-
可运行示例请看 `examples`
811+
可运行示例请看 `example`
812812

813813
## 单元测试
814814

docs/api.md renamed to doc/api.md

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.

examples/simple-loader.php renamed to example/simple-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
error_reporting(E_ALL);
4-
date_default_timezone_set("Asia/Shanghai");
4+
date_default_timezone_set('Asia/Shanghai');
55

66
spl_autoload_register(function($class)
77
{

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 Validate-Filter 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">.rc</directory>
2222
</whitelist>
2323
</filter>
2424
</phpunit>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/boot.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
/**
3+
* phpunit --bootstrap test/boot.php test
4+
*/
5+
6+
require dirname(__DIR__) . '/example/simple-loader.php';

tests/boot.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)