Skip to content

Commit 3b45a8b

Browse files
committed
Solve some PHPUnit issues
1 parent 326c6ec commit 3b45a8b

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="tests/bootstrap.php" cacheResult="false" colors="true" executionOrder="random" failOnRisky="true" failOnWarning="true" failOnEmptyTestSuite="true" beStrictAboutChangesToGlobalState="true" beStrictAboutOutputDuringTests="true" cacheDirectory="tmp/.phpunit.cache" beStrictAboutCoverageMetadata="true">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="tests/bootstrap.php" cacheResult="false" colors="true" executionOrder="random" failOnRisky="true" failOnWarning="true" failOnEmptyTestSuite="true" beStrictAboutChangesToGlobalState="true" beStrictAboutOutputDuringTests="true" cacheDirectory="tmp/.phpunit.cache" beStrictAboutCoverageMetadata="true" displayDetailsOnPhpunitDeprecations="true" displayDetailsOnIncompleteTests="true">
33
<extensions>
44
<bootstrap class="PHPStan\Testing\PHPUnit\PHPStanPHPUnitExtension"/>
55
</extensions>

tests/PHPStan/Analyser/AnalyserTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,6 @@ public function testFileWithAnIgnoredErrorIdentifiersWithWrongIdentifier(): void
161161
$this->assertSame('Ignored error pattern wrong.identifier was not matched in reported errors.', $result[1]);
162162
}
163163

164-
public function testIgnoringBrokenConfigurationDoesNotWork(): void
165-
{
166-
$this->markTestIncomplete();
167-
$result = $this->runAnalyser(['#was not found while trying to analyse it#'], true, __DIR__ . '/../../notAutoloaded/Baz.php', false);
168-
$this->assertCount(2, $result);
169-
assert($result[0] instanceof Error);
170-
$this->assertSame('Class PHPStan\Tests\Baz was not found while trying to analyse it - autoloading is probably not configured properly.', $result[0]->getMessage());
171-
$this->assertSame('Error message "Class PHPStan\Tests\Baz was not found while trying to analyse it - autoloading is probably not configured properly." cannot be ignored, use excludePaths instead.', $result[1]);
172-
}
173-
174164
public function testIgnoreErrorByPath(): void
175165
{
176166
$ignoreErrors = [

tests/PHPStan/Type/MixedTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ public function testSubtractedHasOffsetValueType(MixedType $mixedType, Type $typ
11291129
);
11301130
}
11311131

1132-
/** @dataProvider dataEquals */
1132+
#[DataProvider('dataEquals')]
11331133
public function testEquals(MixedType $mixedType, Type $typeToCompare, bool $expectedResult): void
11341134
{
11351135
$this->assertSame(

0 commit comments

Comments
 (0)