AllStubsDataProviderTest
class AllStubsDataProviderTest extends TestCase (View source)
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Exclusion must be evaluated relative to the stubs root, never against the absolute path.
No description
No description
No description
Details
testItReturnsArrayOfStubFiles()
No description
testItReturnsNotEmptyArrayOfStubFiles()
No description
testItReturnsOnlyPhpFiles()
No description
testItReturnsValidFilePaths()
No description
testItExcludesVendorDirectory()
No description
testItExcludesTestsDirectory()
No description
testItExcludesGitDirectory()
No description
testItExcludesIdeaDirectory()
No description
testItExcludesPhpStormStubsMapFile()
No description
testItExcludesPhpStormMetaFiles()
No description
testGetStubFileContentReturnsStringForValidFile()
No description
testGetStubFileContentWorksWithRelativePath()
No description
testGetStubFileContentThrowsExceptionForNonExistentFile()
No description
testGetStubFileContentThrowsExceptionForRelativeNonExistentFile()
No description
testGetStubsRootPathReturnsString()
No description
testConstructorWithCustomPath()
No description
testConstructorWithoutPathSetsDefaultPath()
No description
testGetAllStubFilesReturnsAtLeastOneStubPerExtension()
No description
testIsAbsolutePathRecognizesAbsolutePaths(string $path, bool $expected)
No description
static array
absolutePathProvider()
No description
testShouldExcludeNormalizesWindowsSeparators()
No description
testExclusionIsRelativeToTheStubsRootSoACheckoutUnderSuchADirectoryStillWorks()
Exclusion must be evaluated relative to the stubs root, never against the absolute path.
The framework only ever runs from a clone of this repository (StubTests\ is registered under autoload-dev, and phpunit.xml.dist is export-ignored, so it cannot run from a Composer install). The reachable trigger is therefore the clone location: if any ancestor directory is named vendor/tests/.git/.idea, absolute-path matching excluded every discovered file. getAllStubFiles() returned an empty array, run-stubs-parser.php wrote five empty Stubs*.json caches and printed SUCCESS, and every validator then compared reflection against an empty stub set — a fully green run that validated nothing.
~/work/tests/phpstorm-stubs is an ordinary checkout path, and .git/worktrees/<name> is
where git worktree add puts a linked worktree by convention.
testItDiscoversStubsWhenTheCheckoutSitsUnderAnExcludedDirectoryName()
No description
testItRecursivelyDiscoversNestedStubsAndPrunesExcludedDirectories()
No description
testGetStubFileContentDoesNotPrependRootToWindowsAbsolutePaths()
No description