<phpunit
        bootstrap="test/bootstrap.php">
    <testsuite name="all">
        <directory>test</directory>
    </testsuite>
    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
    <filter>
        <blacklist>
            <directory>./vendor</directory>
        </blacklist>
    </filter>
</phpunit>

<phpunit
        bootstrap="test/bootstrap.php">
    <testsuite name="all">
        <directory>test</directory>
    </testsuite>
    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
    <filter>
        <blacklist>
            <directory>./vendor</directory>
            <directory>./test</directory>
        </blacklist>
    </filter>
</phpunit>

Exclude classes in test directory from code coverage
Exclude classes in test directory from code coverage
