class CoreStubsDataProviderUsageExampleTest extends TestCase (View source)

This test demonstrates how to use CoreStubsDataProvider to parse only specific categories of stubs, which is useful for tests that should only validate core PHP functionality (e.g., type hint validation) or to improve test performance.

Methods

testParseOnlyCoreStubs()

Example: Parse only Core stubs (fastest, minimal set)

testParseCoreAndBundledStubs()

Example: Parse Core + Bundled stubs (common use case)

testParseOnlyPeclStubs()

Example: Parse only PECL stubs (third-party extensions)

testCoreStubsAreFasterThanAllStubs()

Performance comparison: Core only vs All stubs

testTypeHintValidationShouldUseCoreAndBundledAndExternal()

Example: Use case for type hint validation - only test Core + Bundled + External (exclude PECL because PECL extensions may not have strict type hints)

Details

testParseOnlyCoreStubs()

Example: Parse only Core stubs (fastest, minimal set)

testParseCoreAndBundledStubs()

Example: Parse Core + Bundled stubs (common use case)

testParseOnlyPeclStubs()

Example: Parse only PECL stubs (third-party extensions)

testCoreStubsAreFasterThanAllStubs()

Performance comparison: Core only vs All stubs

testTypeHintValidationShouldUseCoreAndBundledAndExternal()

Example: Use case for type hint validation - only test Core + Bundled + External (exclude PECL because PECL extensions may not have strict type hints)