Skip to content

Commit f6b9898

Browse files
committed
NodeScopeResolverTest - remove requires
1 parent effa1e1 commit f6b9898

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

tests/PHPStan/Analyser/NodeScopeResolverTest.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class NodeScopeResolverTest extends TypeInferenceTestCase
1515

1616
public function dataFileAsserts(): iterable
1717
{
18-
require_once __DIR__ . '/data/implode.php';
1918
yield from $this->gatherAssertTypes(__DIR__ . '/data/implode.php');
2019

2120
yield from $this->gatherAssertTypes(__DIR__ . '/data/json-decode/narrow_type.php');
@@ -24,21 +23,13 @@ public function dataFileAsserts(): iterable
2423
yield from $this->gatherAssertTypes(__DIR__ . '/data/json-decode/json_object_as_array.php');
2524
yield from $this->gatherAssertTypes(__DIR__ . '/data/generic-method-tags.php');
2625

27-
require_once __DIR__ . '/data/bug2574.php';
28-
2926
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug2574.php');
3027
yield from $this->gatherAssertTypes(__DIR__ . '/data/generic-callables.php');
3128

32-
require_once __DIR__ . '/data/bug2577.php';
33-
3429
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug2577.php');
3530

36-
require_once __DIR__ . '/data/generics.php';
37-
3831
yield from $this->gatherAssertTypes(__DIR__ . '/data/generics.php');
3932

40-
require_once __DIR__ . '/data/generic-class-string.php';
41-
4233
yield from $this->gatherAssertTypes(__DIR__ . '/data/generic-class-string.php');
4334
if (PHP_VERSION_ID >= 80100) {
4435
yield from $this->gatherAssertTypes(__DIR__ . '/data/generic-enum-class-string.php');
@@ -47,12 +38,8 @@ public function dataFileAsserts(): iterable
4738
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-10445.php');
4839
}
4940

50-
require_once __DIR__ . '/data/generic-generalization.php';
51-
5241
yield from $this->gatherAssertTypes(__DIR__ . '/data/generic-generalization.php');
5342

54-
require_once __DIR__ . '/data/instanceof.php';
55-
5643
yield from $this->gatherAssertTypes(__DIR__ . '/data/named-arguments.php');
5744
yield from $this->gatherAssertTypes(__DIR__ . '/data/date.php');
5845
yield from $this->gatherAssertTypes(__DIR__ . '/data/instanceof.php');
@@ -157,7 +144,6 @@ public function dataFileAsserts(): iterable
157144
yield from $this->gatherAssertTypes(__DIR__ . '/data/graphics-draw-return-types.php');
158145
}
159146

160-
require_once __DIR__ . '/../../../stubs/runtime/ReflectionUnionType.php';
161147
yield from $this->gatherAssertTypes(__DIR__ . '/../Reflection/data/unionTypes.php');
162148

163149
yield from $this->gatherAssertTypes(__DIR__ . '/../Reflection/data/mixedType.php');
@@ -398,7 +384,6 @@ public function dataFileAsserts(): iterable
398384
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-4579.php');
399385
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-3321.php');
400386

401-
require_once __DIR__ . '/../Rules/Generics/data/bug-3769.php';
402387
yield from $this->gatherAssertTypes(__DIR__ . '/../Rules/Generics/data/bug-3769.php');
403388
yield from $this->gatherAssertTypes(__DIR__ . '/../Rules/Generics/data/bug-6301.php');
404389

@@ -414,7 +399,6 @@ public function dataFileAsserts(): iterable
414399
yield from $this->gatherAssertTypes(__DIR__ . '/data/iterator-iterator.php');
415400
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-4642.php');
416401
yield from $this->gatherAssertTypes(__DIR__ . '/../Rules/PhpDoc/data/bug-4643.php');
417-
require_once __DIR__ . '/data/throw-points/helpers.php';
418402
if (PHP_VERSION_ID >= 80000) {
419403
yield from $this->gatherAssertTypes(__DIR__ . '/data/throw-points/php8/null-safe-method-call.php');
420404
}
@@ -439,7 +423,6 @@ public function dataFileAsserts(): iterable
439423
yield from $this->gatherAssertTypes(__DIR__ . '/data/throw-points/while.php');
440424
yield from $this->gatherAssertTypes(__DIR__ . '/data/throw-points/try-catch.php');
441425
yield from $this->gatherAssertTypes(__DIR__ . '/data/phpdoc-pseudotype-override.php');
442-
require_once __DIR__ . '/data/phpdoc-pseudotype-namespace.php';
443426

444427
yield from $this->gatherAssertTypes(__DIR__ . '/data/phpdoc-pseudotype-namespace.php');
445428
yield from $this->gatherAssertTypes(__DIR__ . '/data/phpdoc-pseudotype-global.php');
@@ -475,7 +458,6 @@ public function dataFileAsserts(): iterable
475458
yield from $this->gatherAssertTypes(__DIR__ . '/data/invalidate-object-argument.php');
476459
yield from $this->gatherAssertTypes(__DIR__ . '/data/invalidate-object-argument-static.php');
477460

478-
require_once __DIR__ . '/data/invalidate-object-argument-function.php';
479461
yield from $this->gatherAssertTypes(__DIR__ . '/data/invalidate-object-argument-function.php');
480462

481463
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-4588.php');
@@ -505,8 +487,6 @@ public function dataFileAsserts(): iterable
505487
yield from $this->gatherAssertTypes(__DIR__ . '/data/generics-reduce-types-first.php');
506488
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-4803.php');
507489

508-
require_once __DIR__ . '/data/type-aliases.php';
509-
510490
yield from $this->gatherAssertTypes(__DIR__ . '/data/type-aliases.php');
511491
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-4650.php');
512492
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-2906.php');
@@ -541,7 +521,6 @@ public function dataFileAsserts(): iterable
541521
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-3158.php');
542522
yield from $this->gatherAssertTypes(__DIR__ . '/../Rules/Methods/data/unable-to-resolve-callback-parameter-type.php');
543523

544-
require_once __DIR__ . '/../Rules/Functions/data/varying-acceptor.php';
545524
yield from $this->gatherAssertTypes(__DIR__ . '/../Rules/Functions/data/varying-acceptor.php');
546525

547526
yield from $this->gatherAssertTypes(__DIR__ . '/data/uksort-bug.php');
@@ -870,7 +849,6 @@ public function dataFileAsserts(): iterable
870849
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-6654.php');
871850
}
872851

873-
require_once __DIR__ . '/data/countable.php';
874852
yield from $this->gatherAssertTypes(__DIR__ . '/data/countable.php');
875853

876854
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-6696.php');
@@ -1020,7 +998,6 @@ public function dataFileAsserts(): iterable
1020998

1021999
yield from $this->gatherAssertTypes(__DIR__ . '/data/conditional-types-constant.php');
10221000

1023-
require_once __DIR__ . '/data/constant-phpdoc-type.php';
10241001
yield from $this->gatherAssertTypes(__DIR__ . '/data/constant-phpdoc-type.php');
10251002

10261003
if (PHP_VERSION_ID >= 80000) {

0 commit comments

Comments
 (0)