add PHPUnit 8 void return types

This commit is contained in:
Tomas Votruba 2019-02-03 23:31:06 +01:00
parent 2e62d080f4
commit f2c948170b
2 changed files with 12 additions and 4 deletions

View File

@ -6,3 +6,13 @@ services:
# https://github.com/sebastianbergmann/phpunit/issues/3123
'PHPUnit_Framework_MockObject_MockObject': 'PHPUnit\Framework\MockObject\MockObject'
Rector\PHPUnit\Rector\MethodCall\AssertEqualsParameterToSpecificMethodsTypeRector: ~
Rector\Rector\Typehint\ReturnTypehintRector:
PHPUnit\Framework\TestCase:
setUpBeforeClass: 'void'
setUp: 'void'
assertPreConditions: 'void'
assertPostConditions: 'void'
tearDown: 'void'
tearDownAfterClass: 'void'
onNotSuccessfulTest: 'void'

View File

@ -47,10 +47,8 @@ class SomeClass
CODE_SAMPLE
,
[
'$typehintForMethodByClass' => [
'SomeClass' => [
'getData' => 'array',
],
'SomeClass' => [
'getData' => 'array',
],
]
),