File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
rules/PHPUnit100/Rector/Class_ Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 99use PhpParser \Node \Stmt \Class_ ;
1010use PhpParser \Node \Stmt \TraitUse ;
1111use PHPStan \Reflection \ClassReflection ;
12+ use Prophecy \PhpUnit \ProphecyTrait ;
1213use Rector \PhpParser \Node \BetterNodeFinder ;
1314use Rector \PHPUnit \NodeAnalyzer \TestsNodeAnalyzer ;
1415use Rector \Rector \AbstractRector ;
@@ -28,7 +29,7 @@ final class AddProphecyTraitRector extends AbstractRector
2829 /**
2930 * @var string
3031 */
31- private const PROPHECY_TRAIT = ' Prophecy\PhpUnit\ ProphecyTrait' ;
32+ private const PROPHECY_TRAIT = ProphecyTrait::class ;
3233
3334 public function __construct (
3435 private readonly TestsNodeAnalyzer $ testsNodeAnalyzer ,
Original file line number Diff line number Diff line change 44
55namespace Rector \PHPUnit \Enum ;
66
7+ use Behat \Behat \Context \Context ;
8+
79final class BehatClassName
810{
911 /**
1012 * @var string
1113 */
12- public const CONTEXT = ' Behat\Behat\ Context\Context ' ;
14+ public const CONTEXT = Context::class ;
1315}
You can’t perform that action at this time.
0 commit comments