forked from zendframework/zend-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml.dist
90 lines (76 loc) · 4.14 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="./vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="zend-mail Test Suite">
<directory>./test/</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>disable</group>
</exclude>
</groups>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<php>
<ini name="date.timezone" value="UTC"/>
<!-- OB_ENABLED should be enabled for some tests to check if all
functionality works as expected. Such tests include those for
Zend\Soap and Zend\Session, which require that headers not be sent
in order to work. -->
<env name="TESTS_ZEND_OB_ENABLED" value="false" />
<!-- Zend\Mail\Storage tests
TESTS_ZEND_MAIL_SERVER_TESTDIR and TESTS_ZEND_MAIL_SERVER_FORMAT
are used for POP3 and IMAP tests. TESTS_ZEND_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_ZEND_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_ZEND_MAIL_TEMPDIR is used for testing write operations in
local storages. If not set (== null) tempnam() is used. -->
<env name="TESTS_ZEND_MAIL_SERVER_TESTDIR" value="" />
<env name="TESTS_ZEND_MAIL_SERVER_FORMAT" value="mbox" />
<env name="TESTS_ZEND_MAIL_TEMPDIR" value="" />
<!-- Zend\Mail\Storage\Pop3 / Zend\Mail\Transport\Pop3
IMPORTANT: you need to copy tests/Zend/Mail/_files/test.mbox to
your mail if you haven't set TESTS_ZEND_MAIL_SERVER_TESTDIR -->
<env name="TESTS_ZEND_MAIL_POP3_ENABLED" value="false" />
<env name="TESTS_ZEND_MAIL_POP3_HOST" value="localhost" />
<env name="TESTS_ZEND_MAIL_POP3_USER" value="test" />
<env name="TESTS_ZEND_MAIL_POP3_PASSWORD" value="" />
<env name="TESTS_ZEND_MAIL_POP3_SSL" value="true" />
<env name="TESTS_ZEND_MAIL_POP3_TLS" value="true" />
<env name="TESTS_ZEND_MAIL_POP3_WRONG_PORT" value="80" />
<env name="TESTS_ZEND_MAIL_POP3_INVALID_PORT" value="3141" />
<!-- Zend\Mail\Storage\Imap / Zend\Mail\Transport\Imap
IMPORTANT: you need to copy tests/Zend/Mail/_files/test.mbox to
your mail if you haven't set TESTS_ZEND_MAIL_SERVER_TESTDIR -->
<env name="TESTS_ZEND_MAIL_IMAP_ENABLED" value="false" />
<env name="TESTS_ZEND_MAIL_IMAP_HOST" value="localhost" />
<env name="TESTS_ZEND_MAIL_IMAP_USER" value="test" />
<env name="TESTS_ZEND_MAIL_IMAP_PASSWORD" value="" />
<env name="TESTS_ZEND_MAIL_IMAP_SSL" value="true" />
<env name="TESTS_ZEND_MAIL_IMAP_TLS" value="true" />
<env name="TESTS_ZEND_MAIL_IMAP_WRONG_PORT" value="80" />
<env name="TESTS_ZEND_MAIL_IMAP_INVALID_PORT" value="3141" />
<!-- Zend\Mail\Storage\Maildir test
Before enabling this test you have to unpack messages.tar in
test/_files/test.maildir/cur/ and remove the tar for this test to
work. That's because the messages files have a colon in the
filename and that's a forbidden character on Windows. -->
<env name="TESTS_ZEND_MAIL_MAILDIR_ENABLED" value="false" />
<env name="TESTS_ZEND_MAIL_SMTP_ENABLED" value="false" />
<env name="TESTS_ZEND_MAIL_SMTP_HOST" value="localhost" />
<env name="TESTS_ZEND_MAIL_SMTP_PORT" value="25" />
<env name="TESTS_ZEND_MAIL_SMTP_USER" value="testuser" />
<env name="TESTS_ZEND_MAIL_SMTP_PASSWORD" value="testpassword" />
<env name="TESTS_ZEND_MAIL_SMTP_AUTH" value="false" />
</php>
</phpunit>