Skip to content

Commit dad364b

Browse files
committed
PHPUnit 10
Fix styling
1 parent fcf4fdd commit dad364b

File tree

4 files changed

+21
-46
lines changed

4 files changed

+21
-46
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
},
2424
"require-dev": {
2525
"laravel/pint": "^1.5",
26-
"nunomaduro/collision": "^7.0.3",
26+
"nunomaduro/collision": "^7.0.4",
2727
"nunomaduro/larastan": "^2.4.1",
2828
"orchestra/testbench": "^8.0.1",
2929
"phpstan/extension-installer": "^1.2",
3030
"phpstan/phpstan-deprecation-rules": "^1.1.1",
3131
"phpstan/phpstan-phpunit": "^1.3.4",
32-
"phpunit/phpunit": "^9.6.3"
32+
"phpunit/phpunit": "^10.0.7"
3333
},
3434
"autoload": {
3535
"psr-4": {

phpunit.xml.dist

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
executionOrder="random"
15-
failOnWarning="true"
16-
failOnRisky="true"
17-
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
20-
>
21-
<testsuites>
22-
<testsuite name="Limenet Test Suite">
23-
<directory>tests</directory>
24-
</testsuite>
25-
</testsuites>
26-
<coverage
27-
includeUncoveredFiles="true"
28-
processUncoveredFiles="true"
29-
pathCoverage="true"
30-
>
31-
<include>
32-
<directory suffix=".php">./src</directory>
33-
</include>
34-
<report>
35-
<html outputDirectory="build/coverage"/>
36-
<text outputFile="build/coverage.txt"/>
37-
<clover outputFile="build/logs/clover.xml"/>
38-
</report>
39-
</coverage>
40-
<logging>
41-
<junit outputFile="build/report.junit.xml"/>
42-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Limenet Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<coverage includeUncoveredFiles="true" pathCoverage="true">
9+
<include>
10+
<directory suffix=".php">./src</directory>
11+
</include>
12+
<report>
13+
<html outputDirectory="build/coverage"/>
14+
<text outputFile="build/coverage.txt"/>
15+
<clover outputFile="build/logs/clover.xml"/>
16+
</report>
17+
</coverage>
18+
<logging>
19+
<junit outputFile="build/report.junit.xml"/>
20+
</logging>
4321
</phpunit>

src/Index/IndexInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ public function indexingLock(): Lock;
149149
/**
150150
* Should errors during indexing be ignored?
151151
* Recommendation: set getBatchSize() to 1 if this is enabled.
152-
*
153-
* @return bool
154152
*/
155153
public function ingoreIndexingErrors(): bool;
156154
}

src/Services/ModelEventListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function __construct(protected IndexRepository $indexRepository)
3434
{
3535
}
3636

37-
/** @param Model $model */
3837
public function handle(string $event, Model $model): void
3938
{
4039
if (! $model instanceof ElasticsearchableInterface) {

0 commit comments

Comments
 (0)