Skip to content

Commit 8a9b99a

Browse files
OskarStarknicolas-grekas
authored andcommitted
Migrate to static data providers using rector/rector
1 parent 4716bf9 commit 8a9b99a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: Tests/DeprecationErrorHandler/ConfigurationTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function testItCanTellWhetherToDisplayAStackTrace()
179179
$this->assertTrue($configuration->shouldDisplayStackTrace('interesting'));
180180
}
181181

182-
public function provideItCanBeDisabled(): array
182+
public static function provideItCanBeDisabled(): array
183183
{
184184
return [
185185
['disabled', false],
@@ -248,7 +248,7 @@ public function testToleratesForIndividualGroups(string $deprecationsHelper, arr
248248
}
249249
}
250250

251-
public function provideDataForToleratesForGroup() {
251+
public static function provideDataForToleratesForGroup() {
252252

253253
yield 'total threshold not reached' => ['max[total]=1', [
254254
'unsilenced' => 0,

Diff for: Tests/DeprecationErrorHandler/DeprecationTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testItMutesOnlySpecificErrorMessagesWhenTheCallingCodeIsInPhpuni
9797
$this->assertSame($muted, $deprecation->isMuted());
9898
}
9999

100-
public function mutedProvider()
100+
public static function mutedProvider()
101101
{
102102
yield 'not from phpunit, and not a whitelisted message' => [
103103
false,
@@ -147,7 +147,7 @@ public function testItTakesMutesDeprecationFromPhpUnitFiles()
147147
$this->assertTrue($deprecation->isMuted());
148148
}
149149

150-
public function providerGetTypeDetectsSelf()
150+
public static function providerGetTypeDetectsSelf()
151151
{
152152
return [
153153
'not_from_vendors_file' => [Deprecation::TYPE_SELF, '', 'MyClass1', __FILE__],
@@ -182,7 +182,7 @@ public function testGetTypeDetectsSelf(string $expectedType, string $message, st
182182
$this->assertSame($expectedType, $deprecation->getType());
183183
}
184184

185-
public function providerGetTypeUsesRightTrace()
185+
public static function providerGetTypeUsesRightTrace()
186186
{
187187
$vendorDir = self::getVendorDir();
188188
$fakeTrace = [

0 commit comments

Comments
 (0)