Skip to content

Commit 3f51c39

Browse files
committed
Simplify test setup.
1 parent bd324c2 commit 3f51c39

File tree

7 files changed

+18
-24
lines changed

7 files changed

+18
-24
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"autoload-dev": {
4242
"psr-4": {
43-
"NPM\\TelegramBotManager\\Tests\\": "tests/TelegramBotManager/Tests"
43+
"NPM\\TelegramBotManager\\Tests\\": "tests"
4444
}
4545
},
4646
"scripts": {

phpunit.xml.dist

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="tests/bootstrap.php" colors="true">
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
beStrictAboutOutputDuringTests="true"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnError="false"
12+
stopOnFailure="false"
13+
verbose="true"
14+
>
315
<testsuites>
416
<testsuite name="TelegramBotManager Test Suite">
5-
<directory>tests/</directory>
17+
<directory suffix="Test.php">tests/</directory>
618
</testsuite>
719
</testsuites>
820

921
<filter>
10-
<whitelist>
22+
<whitelist processUncoveredFilesFromWhitelist="true">
1123
<directory suffix=".php">src/</directory>
1224
</whitelist>
1325
</filter>
1426

1527
<php>
1628
<ini name="date.timezone" value="UTC"/>
17-
<ini name="error_reporting" value="-1" />
18-
<const name="PHPUNIT_TEST" value="true" />
29+
<ini name="error_reporting" value="-1"/>
30+
<const name="PHPUNIT_TEST" value="true"/>
1931
<const name="PHPUNIT_DB_HOST" value="127.0.0.1"/>
2032
<const name="PHPUNIT_DB_USER" value="root"/>
2133
<const name="PHPUNIT_DB_PASSWORD" value=""/>

tests/TelegramBotManager/Tests/ActionTest.php renamed to tests/ActionTest.php

File renamed without changes.

tests/TelegramBotManager/Tests/BotManagerTest.php renamed to tests/BotManagerTest.php

File renamed without changes.

tests/TelegramBotManager/Tests/ParamsTest.php renamed to tests/ParamsTest.php

File renamed without changes.

tests/TelegramBotManager/Tests/TestHelpers.php renamed to tests/TestHelpers.php

File renamed without changes.

tests/bootstrap.php

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

0 commit comments

Comments
 (0)