Skip to content

Commit d686fc6

Browse files
committed
fixed cs
1 parent 0482515 commit d686fc6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/lib/PhpCsFixer/InternalConfigFactoryTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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+
*/
37
declare(strict_types=1);
48

59
namespace Ibexa\Tests\CodeStyle\PhpCsFixer;
@@ -9,14 +13,16 @@
913
use Ibexa\CodeStyle\PhpCsFixer\Sets\Ibexa50RuleSet;
1014
use PHPUnit\Framework\TestCase;
1115
use ReflectionClass;
16+
use ReflectionMethod;
1217

1318
/**
1419
* @covers \Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory
1520
*/
1621
class 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

Comments
 (0)