Skip to content

Commit a49dbaa

Browse files
committed
Merge branch 'dev/4.0' into update-to-4
2 parents dee419a + 6fc0b4a commit a49dbaa

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

phpunit.xml.dist

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit backupGlobals="true"
4-
backupStaticAttributes="true"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
verbose="true"
12-
bootstrap="../../../../tests/bootstrap.php"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
backupGlobals="true"
5+
backupStaticAttributes="false"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
cacheResult="false"
13+
bootstrap="../../../../tests/bootstrap.php"
1314
>
15+
<coverage>
16+
<include>
17+
<directory suffix=".php">./</directory>
18+
</include>
19+
<exclude>
20+
<directory suffix=".php">./language/</directory>
21+
<directory suffix=".php">./migrations/</directory>
22+
<directory suffix=".php">./tests/</directory>
23+
</exclude>
24+
</coverage>
1425
<testsuites>
1526
<testsuite name="Extension Test Suite">
1627
<directory suffix="_test.php">./tests</directory>
@@ -20,15 +31,4 @@
2031
<directory suffix="_test.php">./tests/functional/</directory>
2132
</testsuite>
2233
</testsuites>
23-
24-
<filter>
25-
<whitelist processUncoveredFilesFromWhitelist="true">
26-
<directory suffix=".php">./</directory>
27-
<exclude>
28-
<directory suffix=".php">./language/</directory>
29-
<directory suffix=".php">./migrations/</directory>
30-
<directory suffix=".php">./tests/</directory>
31-
</exclude>
32-
</whitelist>
33-
</filter>
3434
</phpunit>

tests/event/listener_base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function setUp(): void
6464
protected function set_listener()
6565
{
6666
$this->listener = $this->getMockBuilder('\phpbb\teamsecurity\event\listener')
67-
->setMethods(array(
67+
->onlyMethods(array(
6868
'in_watch_group',
6969
'send_message'
7070
))

0 commit comments

Comments
 (0)