mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
add failing test
This commit is contained in:
parent
2256d6954c
commit
51edbe4b1a
@ -8,10 +8,7 @@ class SomeValueObject
|
||||
|
||||
class ActionClass
|
||||
{
|
||||
/**
|
||||
* @param string|null $name
|
||||
*/
|
||||
public function someFunction(?string $name)
|
||||
public function someFunction(?string $name): ?string
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,9 @@ namespace Rector\Tests\Rector\Dynamic\ValueObjectRemoverRector;
|
||||
|
||||
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
|
||||
|
||||
/**
|
||||
* @covers \Rector\Rector\Dynamic\ValueObjectRemoverRector
|
||||
*/
|
||||
final class ValueObjectRemoverRectorTest extends AbstractRectorTestCase
|
||||
{
|
||||
/**
|
||||
@ -20,8 +23,9 @@ final class ValueObjectRemoverRectorTest extends AbstractRectorTestCase
|
||||
public function provideWrongToFixedFiles(): array
|
||||
{
|
||||
return [
|
||||
[__DIR__ . '/Wrong/wrong.php.inc', __DIR__ . '/Correct/correct.php.inc'],
|
||||
[__DIR__ . '/Wrong/wrong2.php.inc', __DIR__ . '/Correct/correct2.php.inc'],
|
||||
// [__DIR__ . '/Wrong/wrong.php.inc', __DIR__ . '/Correct/correct.php.inc'],
|
||||
// [__DIR__ . '/Wrong/wrong2.php.inc', __DIR__ . '/Correct/correct2.php.inc'],
|
||||
[__DIR__ . '/Wrong/wrong3.php.inc', __DIR__ . '/Correct/correct3.php.inc'],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -8,10 +8,7 @@ class SomeValueObject
|
||||
|
||||
class ActionClass
|
||||
{
|
||||
/**
|
||||
* @param SomeValueObject|null $name
|
||||
*/
|
||||
public function someFunction(?SomeValueObject $name)
|
||||
public function someFunction(?SomeValueObject $name): ?SomeValueObject
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user