mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
b4f95deefc
suggests that this can lead to issues
with classes having the same name. However, this does not seem to be a problem
with the current version of PHPUnit we are using.
Despite https://phpunit.de/manual/4.1/en/code-coverage-analysis.html saying
that addUncoveredFilesFromWhitelist="true" is optional, this seems to be on by
default in PHPUnit 4.1.0. As a result, all files are considered for code
coverage; which is what we want.
processUncoveredFilesFromWhitelist is however false (by default) and as such
even files that are considered for code coverage are not processed through PHP
when not used in actual tests. Since it is already impossible to test multiple
classes with the same name in the same test run (without process isolation),
because that would already lead to "cannot redeclare class" errors, it is also
impossible for "cannot redeclare class" errors to happen in test coverage.
PHPBB3-13341
39 lines
1.2 KiB
XML
39 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<phpunit backupGlobals="true"
|
|
backupStaticAttributes="true"
|
|
colors="true"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
processIsolation="false"
|
|
stopOnFailure="false"
|
|
syntaxCheck="false"
|
|
bootstrap="tests/bootstrap.php"
|
|
>
|
|
<testsuites>
|
|
<testsuite name="phpBB Test Suite">
|
|
<directory suffix="_test.php">./tests</directory>
|
|
<exclude>./tests/functional</exclude>
|
|
<exclude>./tests/lint_test.php</exclude>
|
|
</testsuite>
|
|
<testsuite name="phpBB Functional Tests">
|
|
<directory suffix="_test.php" phpVersion="5.3.0" phpVersionOperator=">=">./tests/functional</directory>
|
|
</testsuite>
|
|
<testsuite name="phpBB Lint Test">
|
|
<file>./tests/lint_test.php</file>
|
|
</testsuite>
|
|
</testsuites>
|
|
|
|
<groups>
|
|
<exclude>
|
|
<group>slow</group>
|
|
</exclude>
|
|
</groups>
|
|
|
|
<filter>
|
|
<whitelist>
|
|
<directory suffix=".php">./phpBB/includes/</directory>
|
|
</whitelist>
|
|
</filter>
|
|
</phpunit>
|