11<?php
22
3+ /**
4+ * @copyright Copyright (C) Ibexa AS. All rights reserved.
5+ * @license For full copyright and license information view LICENSE file distributed with this source code.
6+ */
37declare (strict_types=1 );
48
59namespace Ibexa \Tests \CodeStyle \PhpCsFixer ;
913use Ibexa \CodeStyle \PhpCsFixer \Sets \Ibexa50RuleSet ;
1014use PHPUnit \Framework \TestCase ;
1115use ReflectionClass ;
16+ use ReflectionMethod ;
1217
1318/**
1419 * @covers \Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory
1520 */
1621class InternalConfigFactoryTest extends TestCase
1722{
1823 private InternalConfigFactory $ factory ;
19- private \ReflectionMethod $ createRuleSetFromPackage ;
24+
25+ private ReflectionMethod $ createRuleSetFromPackage ;
2026
2127 protected function setUp (): void
2228 {
@@ -36,7 +42,7 @@ public function testVersionBasedRuleSetSelection(array $package, string $expecte
3642 {
3743 $ ruleSet = $ this ->createRuleSetFromPackage ->invoke ($ this ->factory , $ package );
3844
39- $ this -> assertInstanceOf ($ expectedRuleSetClass , $ ruleSet );
45+ self :: assertInstanceOf ($ expectedRuleSetClass , $ ruleSet );
4046 }
4147
4248 public function provideRuleSetTestCases (): array
@@ -82,6 +88,6 @@ public function testWithRuleSet(): void
8288 $ customRuleSet = new Ibexa46RuleSet ();
8389 $ this ->factory ->withRuleSet ($ customRuleSet );
8490
85- $ this -> assertSame ($ customRuleSet , $ this ->factory ->getRuleSet ());
91+ self :: assertSame ($ customRuleSet , $ this ->factory ->getRuleSet ());
8692 }
8793}
0 commit comments