mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 19:24:48 +01:00
add test for interface as well
This commit is contained in:
parent
c88a542482
commit
c264cc74dc
@ -0,0 +1,9 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
class SomeVisitor implements \PhpParser\NodeVisitor
|
||||
{
|
||||
public function leaveNode(\PhpParser\Node $node)
|
||||
{
|
||||
return \PhpParser\NodeTraverser::REMOVE_NODE;
|
||||
}
|
||||
}
|
@ -13,6 +13,11 @@ final class Test extends AbstractRectorTestCase
|
||||
__DIR__ . '/Wrong/wrong.php.inc',
|
||||
__DIR__ . '/Correct/correct.php.inc'
|
||||
);
|
||||
|
||||
$this->doTestFileMatchesExpectedContent(
|
||||
__DIR__ . '/Wrong/wrong2.php.inc',
|
||||
__DIR__ . '/Correct/correct2.php.inc'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -0,0 +1,9 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
class SomeVisitor implements \PhpParser\NodeVisitor
|
||||
{
|
||||
public function leaveNode(\PhpParser\Node $node)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user