Skip to content

Commit

Permalink
ci(phpunit): Update config to latest
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 10, 2024
1 parent ba2ad6a commit 49fb7e1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
/.php-cs-fixer.cache

/tests/.phpunit.result.cache
/tests/.phpunit.cache
/tests/Integration/output
/tests/Integration/vendor

Expand Down
4 changes: 2 additions & 2 deletions tests/Service/SummaryServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function getService(array $methods = []) {
);
}

public function dataReadTasksFromMessage(): array {
public static function dataReadTasksFromMessage(): array {
return [
[
'hi',
Expand Down Expand Up @@ -147,7 +147,7 @@ public function testReadTasksFromMessage(string $message, array $tasks, array $t
self::assertEquals(!empty($tasks), $service->readTasksFromMessage($message, ['parameters' => []], 'server', ['target' => ['id' => 't0k3n']]));
}

public function dataGetTitle(): array {
public static function dataGetTitle(): array {
return [
// Default cases
[
Expand Down
32 changes: 13 additions & 19 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="bootstrap.php"
verbose="true"
convertDeprecationsToExceptions="true"
timeoutForSmallTests="900"
timeoutForMediumTests="900"
timeoutForLargeTests="900"
>
<testsuite name='Call Summary Bot Tests'>
<directory suffix='Test.php'>.</directory>
</testsuite>
<!-- filters for code coverage -->
<filter>
<whitelist>
<directory suffix=".php">../../call_summary_bot/appinfo</directory>
<directory suffix=".php">../../call_summary_bot/lib</directory>
</whitelist>
</filter>
<logging>
<!-- and this is where your report will be written -->
<log type="coverage-clover" target="./clover.xml"/>
</logging>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache">
<testsuite name="Call Summary Bot Tests">
<directory>.</directory>
</testsuite>
<source>
<include>
<directory>../../call_summary_bot/appinfo</directory>
<directory>../../call_summary_bot/lib</directory>
</include>
</source>
</phpunit>

0 comments on commit 49fb7e1

Please sign in to comment.