<?php declare(strict_types=1); namespace Ramsey\Collection\Test; use Generator; use PHPStan\Testing\TypeInferenceTestCase; use function glob; class TypesTest extends TypeInferenceTestCase { public function typeFileAsserts(): Generator { $typeTests = glob(__DIR__ . '/types/*.php') ?: []; foreach ($typeTests as $typeTest) { yield from $this->gatherAssertTypes($typeTest); } } /** * @dataProvider typeFileAsserts */ public function testFileAsserts(string $assertType, string $file, mixed ...$args): void { $this->assertFileAsserts($assertType, $file, ...$args); } /** * @return string[] */ public static function getAdditionalConfigFiles(): array { return [__DIR__ . '/../phpstan.neon.dist']; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Map | Folder | 0755 |
|
|
Mock | Folder | 0755 |
|
|
Tool | Folder | 0755 |
|
|
stubs | Folder | 0755 |
|
|
types | Folder | 0755 |
|
|
CollectionManipulationTest.php | File | 26.22 KB | 0644 |
|
CollectionTest.php | File | 9.2 KB | 0644 |
|
DoubleEndedQueueTest.php | File | 16.31 KB | 0644 |
|
GenericArrayTest.php | File | 3.43 KB | 0644 |
|
QueueTest.php | File | 7.51 KB | 0644 |
|
SetTest.php | File | 5.9 KB | 0644 |
|
TestCase.php | File | 415 B | 0644 |
|
TypesTest.php | File | 858 B | 0644 |
|