Skip to content

Commit fd012cd

Browse files
committed
Fix tests
1 parent fdd7d51 commit fd012cd

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.php-cs-fixer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
66

77
const PHPCS_DIRECTORIES = [
8-
__DIR__ . '/libs',
8+
__DIR__ . '/libs/parser/src',
9+
__DIR__ . '/libs/phpdoc/src',
10+
__DIR__ . '/libs/printer/src',
11+
__DIR__ . '/libs/reader/src',
12+
__DIR__ . '/libs/types/src',
913
];
1014

1115
const PHPCS_IGNORE_FILES = [

libs/parser/tests/TypeResolver/PhpUseStatementsReaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ public function testIgnoresCommentsAroundImports(): void
104104
public function testReadsImportsSharedBySeveralClassesInOneFile(): void
105105
{
106106
self::assertSame([
107-
'Some\Shared',
108107
'Alias' => 'Some\Other',
108+
'Some\Shared',
109109
], $this->read(TwoClassesInFileStub::class));
110110
}
111111

libs/parser/tests/TypeResolver/Stub/FunctionAndConstUseStub.php

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

55
namespace TypeLang\Parser\Tests\TypeResolver\Stub;
66

7-
use Some\Aliased as Alias;
87
use Some\ClassName;
8+
use function Some\helperFunction;
9+
use const Some\SOME_CONSTANT;
10+
use Some\Aliased as Alias;
911

1012
/**
1113
* @uses ClassName

0 commit comments

Comments
 (0)