Skip to content

Commit 25fe53e

Browse files
committed
Fix build
1 parent ab44aec commit 25fe53e

6 files changed

+60
-22
lines changed

tests/Rules/PHPUnit/AssertSameBooleanExpectedRuleTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,14 @@ public function testRule(): void
4141
]);
4242
}
4343

44+
/**
45+
* @return string[]
46+
*/
47+
public static function getAdditionalConfigFiles(): array
48+
{
49+
return [
50+
__DIR__ . '/../../../extension.neon',
51+
];
52+
}
53+
4454
}

tests/Rules/PHPUnit/AssertSameMethodDifferentTypesRuleTest.php

+10-11
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper;
66
use PHPStan\Rules\Comparison\ImpossibleCheckTypeMethodCallRule;
77
use PHPStan\Rules\Rule;
8-
use PHPStan\Type\PHPUnit\Assert\AssertMethodTypeSpecifyingExtension;
98

109
/**
1110
* @extends \PHPStan\Testing\RuleTestCase<ImpossibleCheckTypeMethodCallRule>
@@ -18,16 +17,6 @@ protected function getRule(): Rule
1817
return new ImpossibleCheckTypeMethodCallRule(new ImpossibleCheckTypeHelper($this->createBroker(), $this->getTypeSpecifier(), [], true), true, true);
1918
}
2019

21-
/**
22-
* @return \PHPStan\Type\MethodTypeSpecifyingExtension[]
23-
*/
24-
protected function getMethodTypeSpecifyingExtensions(): array
25-
{
26-
return [
27-
new AssertMethodTypeSpecifyingExtension(),
28-
];
29-
}
30-
3120
public function testRule(): void
3221
{
3322
$this->analyse([__DIR__ . '/data/assert-same.php'], [
@@ -74,4 +63,14 @@ public function testRule(): void
7463
]);
7564
}
7665

66+
/**
67+
* @return string[]
68+
*/
69+
public static function getAdditionalConfigFiles(): array
70+
{
71+
return [
72+
__DIR__ . '/../../../extension.neon',
73+
];
74+
}
75+
7776
}

tests/Rules/PHPUnit/AssertSameNullExpectedRuleTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,14 @@ public function testRule(): void
3333
]);
3434
}
3535

36+
/**
37+
* @return string[]
38+
*/
39+
public static function getAdditionalConfigFiles(): array
40+
{
41+
return [
42+
__DIR__ . '/../../../extension.neon',
43+
];
44+
}
45+
3646
}

tests/Rules/PHPUnit/AssertSameStaticMethodDifferentTypesRuleTest.php

+10-11
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper;
66
use PHPStan\Rules\Comparison\ImpossibleCheckTypeStaticMethodCallRule;
77
use PHPStan\Rules\Rule;
8-
use PHPStan\Type\PHPUnit\Assert\AssertStaticMethodTypeSpecifyingExtension;
98

109
/**
1110
* @extends \PHPStan\Testing\RuleTestCase<ImpossibleCheckTypeStaticMethodCallRule>
@@ -18,16 +17,6 @@ protected function getRule(): Rule
1817
return new ImpossibleCheckTypeStaticMethodCallRule(new ImpossibleCheckTypeHelper($this->createBroker(), $this->getTypeSpecifier(), [], true), true, true);
1918
}
2019

21-
/**
22-
* @return \PHPStan\Type\StaticMethodTypeSpecifyingExtension[]
23-
*/
24-
protected function getStaticMethodTypeSpecifyingExtensions(): array
25-
{
26-
return [
27-
new AssertStaticMethodTypeSpecifyingExtension(),
28-
];
29-
}
30-
3120
public function testRule(): void
3221
{
3322
$this->analyse([__DIR__ . '/data/assert-same.php'], [
@@ -58,4 +47,14 @@ public function testRule(): void
5847
]);
5948
}
6049

50+
/**
51+
* @return string[]
52+
*/
53+
public static function getAdditionalConfigFiles(): array
54+
{
55+
return [
56+
__DIR__ . '/../../../extension.neon',
57+
];
58+
}
59+
6160
}

tests/Rules/PHPUnit/AssertSameWithCountRuleTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,14 @@ public function testRule(): void
3333
]);
3434
}
3535

36+
/**
37+
* @return string[]
38+
*/
39+
public static function getAdditionalConfigFiles(): array
40+
{
41+
return [
42+
__DIR__ . '/../../../extension.neon',
43+
];
44+
}
45+
3646
}

tests/Rules/PHPUnit/ShouldCallParentMethodsRuleTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,14 @@ public function testRule(): void
3333
]);
3434
}
3535

36+
/**
37+
* @return string[]
38+
*/
39+
public static function getAdditionalConfigFiles(): array
40+
{
41+
return [
42+
__DIR__ . '/../../../extension.neon',
43+
];
44+
}
45+
3646
}

0 commit comments

Comments
 (0)