Skip to content

Commit 4826e56

Browse files
committed
[ci-review] Rector Rectify
1 parent ff83202 commit 4826e56

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

rules/PHPUnit100/Rector/Class_/AddProphecyTraitRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use PhpParser\Node\Stmt\Class_;
1010
use PhpParser\Node\Stmt\TraitUse;
1111
use PHPStan\Reflection\ClassReflection;
12+
use Prophecy\PhpUnit\ProphecyTrait;
1213
use Rector\PhpParser\Node\BetterNodeFinder;
1314
use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer;
1415
use 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,

src/Enum/BehatClassName.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44

55
namespace Rector\PHPUnit\Enum;
66

7+
use Behat\Behat\Context\Context;
8+
79
final class BehatClassName
810
{
911
/**
1012
* @var string
1113
*/
12-
public const CONTEXT = 'Behat\Behat\Context\Context';
14+
public const CONTEXT = Context::class;
1315
}

0 commit comments

Comments
 (0)