-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpunit.xml
More file actions
50 lines (46 loc) · 1.71 KB
/
Copy pathphpunit.xml
File metadata and controls
50 lines (46 loc) · 1.71 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
phpunit.xml — PHPUnit Test Configuration
🧪 What is PHPUnit?
PHPUnit is the standard testing framework for PHP.
It lets you write automated tests that verify your code works correctly.
Run tests with: composer test
Or directly: vendor/bin/phpunit
With coverage: vendor/bin/phpunit -coverage-html coverage/
📖 Learn more: https://phpunit.de/documentation.html
-->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
failOnWarning="true"
failOnRisky="true"
>
<!-- Where to find the test files -->
<testsuites>
<testsuite name="Unit Tests">
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
<!-- Code Coverage: which source files to measure -->
<source>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<!-- Exclude the main bundle class — it has no testable logic -->
<file>src/MailjetBundle.php</file>
</exclude>
</source>
<!-- PHP settings for tests -->
<php>
<!-- Display errors during tests -->
<ini name="error_reporting" value="-1"/>
<ini name="display_errors" value="On"/>
<!-- Test environment variables (use fake API keys for tests!) -->
<env name="MAILJET_API_KEY" value="test_api_key_do_not_use_in_production"/>
<env name="MAILJET_SECRET_KEY" value="test_secret_key_do_not_use_in_production"/>
<env name="MAILJET_SANDBOX_MODE" value="true"/>
</php>
</phpunit>