<?xml version="1.0" encoding="UTF-8"?>
<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.3/phpunit.xsd"
    bootstrap="bootstrap.php"
    colors="false"
    stopOnFailure="true"
    verbose="true"

    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
>
    <!--
    convertErrorsToExceptions="false"
    convertNoticesToExceptions="false"
    convertWarningsToExceptions="false"
>
    -->
    <php>
        <!--
        The hostname and port of secondaryPeer.xml
        -->
        <const name="REMOTE_HOSTNAME" value="::1" />
        <const name="REMOTE_PORT" value="6666" />
        <!--
        The hostname and port secondaryPeer.xml must use.
        -->
        <const name="LOCAL_HOSTNAME" value="::1" />
        <const name="LOCAL_PORT" value="6667" />
        <!--
        A hostname which doesn't provide a service on any port present here.
        -->
        <const name="SILENT_HOSTNAME" value="::1" />
        <!--
        A port which doesn't provide a service on any hostname present here.
        -->
        <const name="SILENT_PORT" value="6668" />
        <!--
        Name for certificate file.
        Will be created in the test folder, and removed after testing.
        -->
        <const name="CERTIFICATE_FILE" value="selfSigned" />

        <ini name="default_socket_timeout" value="8" />
    </php>
    <testsuites>
        <testsuite name="All tests">
            <file>ClientEncryptedTest.php</file>
            <file>ClientTest.php</file>
            <file>ServerEncryptedTest.php</file>
            <file>ServerTest.php</file>
            <file>UnconnectedTest.php</file>
        </testsuite>
    </testsuites>
    <groups>
        <include>
            <!-- Connection -->
            <group>Persistent</group>
            <group>Unencrypted</group>
            <group>NonPersistent</group>
            <group>Unconnected</group>

            <!-- Module -->
            <group>Client</group>
            <group>Server</group>

            <!-- Feature -->
            <group>StreamReceive</group>
            <group>StreamSend</group>
            <group>BigData</group>
        </include>
        <exclude>
            <!-- Connection -->
            <group>Encrypted</group>

            <!-- Module -->

            <!-- Feature -->
        </exclude>
    </groups>
    <filter>
        <whitelist>
            <directory suffix=".php">../src/PEAR2/Net/Transmitter/</directory>
        </whitelist>
    </filter>
</phpunit>