This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpunit.xml.dist
executable file
·68 lines (55 loc) · 2.33 KB
/
phpunit.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<phpunit
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
bootstrap="./index.php"
verbose="true"
>
<testsuites>
<testsuite name="SlackemonTestSuite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="E_ALL" />
<env name="APP_ENV" value="testing" />
<!-- Define the minimum env vars we expect to be set. -->
<env name="SLACKEMON_SLACK_TOKEN" value="abcdefghijklmnop" />
<env name="SLACKEMON_SLACK_TEAM_ID" value="T01234567" />
<env name="SLACKEMON_SLACK_KEY" value="xoxp-12345678901" />
<env name="SLACKEMON_MAINTAINER" value="U01234567" />
<env name="SLACKEMON_CRON_TOKEN" value="zyxwvutsrqponm" />
<env name="SLACKEMON_INBOUND_URL" value="https://example.com/" />
<!-- Define the minimum server vars we expect to be set. -->
<server name="HTTP_HOST" value="slackemon-unit-tests" />
<server name="SERVER_PORT" value="8080" />
<!-- Define the post vars we will expect from Slack during a slash command invocation. -->
<!-- Ref: https://api.slack.com/slash-commands -->
<post name="token" value="abcdefghijklmnop" />
<post name="team_id" value="T01234567" />
<post name="team_domain" value="example" />
<post name="channel_id" value="C01234567" />
<post name="channel_name" value="general" />
<post name="user_id" value="U01234567" />
<post name="user_name" value="slackemon" />
<post name="command" value="/slackemon" />
<post name="text" value="unit-tests" />
<post name="response_url" value="http://example.com/slackemon" />
</php>
<logging>
<log type="coverage-clover" target="tests/logs/clover.xml" />
</logging>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">lib</directory>
<directory suffix=".php">src</directory>
<!-- TODO: These are inbound request files (for background jobs) and can't be easily unit tested right now. -->
<exclude>
<file>src/_actions.php</file>
<file>src/_commands.php</file>
</exclude>
</whitelist>
</filter>
</phpunit>