Skip to content

Commit adaa0fe

Browse files
committed
[ci-review] Rector Rectify
1 parent c311c2c commit adaa0fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/Scoper/ScoperPatchersTest.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\Tests\Scoper;
66

7+
use Webmozart\Assert\Assert;
78
use Closure;
89
use PHPUnit\Framework\TestCase;
910
use Symfony\Component\Finder\Finder;
@@ -95,7 +96,7 @@ public function refactor(): void
9596

9697
$this->assertStringContainsString('use RectorPrefix202607\Webmozart\Assert\Assert;', (string) $content);
9798
$this->assertStringContainsString('use Webmozart\Assert\Assert;', $codeSampleContent);
98-
$this->assertStringContainsString('\Webmozart\Assert\Assert::allString($items);', $codeSampleContent);
99+
$this->assertStringContainsString(Assert::class . '::allString($items);', $codeSampleContent);
99100
$this->assertStringContainsString('\RectorPrefix202607\SomeVendor\Runtime::class;', (string) $content);
100101
$this->assertStringNotContainsString('namespace RectorPrefix202607;', $codeSampleContent);
101102
$this->assertStringNotContainsString('use RectorPrefix202607\Webmozart\Assert\Assert;', $codeSampleContent);

0 commit comments

Comments
 (0)