Skip to content

Commit f43efc8

Browse files
committed
Update tests for 4.0
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 7c09972 commit f43efc8

2 files changed

Lines changed: 24 additions & 24 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/ext_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ext_test extends \phpbb_test_case
1515
/** @var \PHPUnit\Framework\MockObject\MockObject|\Symfony\Component\DependencyInjection\ContainerInterface */
1616
protected $container;
1717

18-
/** @var \PHPUnit\Framework\MockObject\MockObject|\phpbb\finder */
18+
/** @var \PHPUnit\Framework\MockObject\MockObject|\phpbb\finder\finder */
1919
protected $extension_finder;
2020

2121
/** @var \PHPUnit\Framework\MockObject\MockObject|\phpbb\db\migrator */
@@ -34,7 +34,7 @@ protected function setUp(): void
3434
->getMock();
3535

3636
// Stub the ext finder and disable its constructor
37-
$this->extension_finder = $this->getMockBuilder('\phpbb\finder')
37+
$this->extension_finder = $this->getMockBuilder('\phpbb\finder\finder')
3838
->disableOriginalConstructor()
3939
->getMock();
4040

0 commit comments

Comments
 (0)