forked from laminas/laminas-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml.dist
76 lines (72 loc) · 3.68 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
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="laminas-mail Test Suite">
<directory>./test/</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>disable</group>
</exclude>
</groups>
<php>
<ini name="date.timezone" value="UTC"/>
<ini name="error_reporting" value="-1"/>
<!-- OB_ENABLED should be enabled for some tests to check if all
functionality works as expected. Such tests include those for
Laminas\Soap and Laminas\Session, which require that headers not be sent
in order to work. -->
<env name="TESTS_LAMINAS_OB_ENABLED" value="false"/>
<!-- Laminas\Mail\Storage tests
TESTS_LAMINAS_MAIL_SERVER_TESTDIR and TESTS_LAMINAS_MAIL_SERVER_FORMAT
are used for POP3 and IMAP tests. TESTS_LAMINAS_MAIL_SERVER_FORMAT
is the format your test mail server uses: 'mbox' or 'maildir'. The
mail storage for the user specified in your POP3 or IMAP tests
should be TESTS_LAMINAS_MAIL_SERVER_TESTDIR. Be careful: it's cleared
before copying the files. If you want to copy the files manually
set the dir to null (or anything == null).
TESTS_LAMINAS_MAIL_TEMPDIR is used for testing write operations in
local storages. If not set (== null) tempnam() is used. -->
<env name="TESTS_LAMINAS_MAIL_SERVER_TESTDIR" value=""/>
<env name="TESTS_LAMINAS_MAIL_SERVER_FORMAT" value="mbox"/>
<env name="TESTS_LAMINAS_MAIL_TEMPDIR" value=""/>
<!-- Laminas\Mail\Storage\Pop3 / Laminas\Mail\Transport\Pop3
IMPORTANT: you need to copy tests/Laminas/Mail/_files/test.mbox to
your mail if you haven't set TESTS_LAMINAS_MAIL_SERVER_TESTDIR -->
<env name="TESTS_LAMINAS_MAIL_POP3_ENABLED" value="false"/>
<env name="TESTS_LAMINAS_MAIL_POP3_HOST" value="localhost"/>
<env name="TESTS_LAMINAS_MAIL_POP3_USER" value="test"/>
<env name="TESTS_LAMINAS_MAIL_POP3_PASSWORD" value=""/>
<env name="TESTS_LAMINAS_MAIL_POP3_SSL" value="true"/>
<env name="TESTS_LAMINAS_MAIL_POP3_TLS" value="true"/>
<env name="TESTS_LAMINAS_MAIL_POP3_WRONG_PORT" value="80"/>
<env name="TESTS_LAMINAS_MAIL_POP3_INVALID_PORT" value="3141"/>
<!-- Laminas\Mail\Storage\Imap / Laminas\Mail\Transport\Imap
IMPORTANT: you need to copy tests/Laminas/Mail/_files/test.mbox to
your mail if you haven't set TESTS_LAMINAS_MAIL_SERVER_TESTDIR -->
<env name="TESTS_LAMINAS_MAIL_IMAP_ENABLED" value="false"/>
<env name="TESTS_LAMINAS_MAIL_IMAP_HOST" value="localhost"/>
<env name="TESTS_LAMINAS_MAIL_IMAP_USER" value="test"/>
<env name="TESTS_LAMINAS_MAIL_IMAP_PASSWORD" value=""/>
<env name="TESTS_LAMINAS_MAIL_IMAP_SSL" value="true"/>
<env name="TESTS_LAMINAS_MAIL_IMAP_TLS" value="true"/>
<env name="TESTS_LAMINAS_MAIL_IMAP_WRONG_PORT" value="80"/>
<env name="TESTS_LAMINAS_MAIL_IMAP_INVALID_PORT" value="3141"/>
<!-- Laminas\Mail\Storage\Maildir test -->
<env name="TESTS_LAMINAS_MAIL_SMTP_ENABLED" value="false"/>
<env name="TESTS_LAMINAS_MAIL_SMTP_HOST" value="localhost"/>
<env name="TESTS_LAMINAS_MAIL_SMTP_PORT" value="25"/>
<env name="TESTS_LAMINAS_MAIL_SMTP_USER" value="testuser"/>
<env name="TESTS_LAMINAS_MAIL_SMTP_PASSWORD" value="testpassword"/>
<env name="TESTS_LAMINAS_MAIL_SMTP_AUTH" value="false"/>
</php>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>