class CoreStubsDataProviderTest extends TestCase (View source)

Properties

int $scanCount

Methods

testItReturnsOnlyCoreStubs()

No description

testItReturnsOnlyPeclStubs()

No description

testItReturnsOnlyOthersStubs()

No description

testItCanReadStubFileContent()

No description

testItScansTheInnerProviderOnlyOnceAndReusesTheResult()

The caching contract is "the inner provider is scanned once", and only a call count can state it. The previous version asserted assertSame($files1, $files2) under the comment "should return the same array instance (cached)" — but PHP arrays are values, and assertSame on two arrays compares contents, not identity. Re-scanning the whole tree on every call produces equal arrays, so that assertion passed whether or not the cache existed.

array
getAllStubFiles()

No description

string
getStubFileContent(string $path)

No description

string
getStubsRootPath()

No description

Details

testItReturnsOnlyCoreStubs()

No description

testItReturnsOnlyBundledStubs()

No description

testItReturnsOnlyExternalStubs()

No description

testItReturnsOnlyPeclStubs()

No description

testItReturnsOnlyOthersStubs()

No description

testItReturnsMultipleCategories()

No description

testItExcludesVendorAndTestDirectories()

No description

testItExcludesPhpStormStubsMap()

No description

testItExcludesPhpStormMetaFiles()

No description

testItCanReadStubFileContent()

No description

testItThrowsExceptionForNonexistentFile()

No description

testItScansTheInnerProviderOnlyOnceAndReusesTheResult()

The caching contract is "the inner provider is scanned once", and only a call count can state it. The previous version asserted assertSame($files1, $files2) under the comment "should return the same array instance (cached)" — but PHP arrays are values, and assertSame on two arrays compares contents, not identity. Re-scanning the whole tree on every call produces equal arrays, so that assertion passed whether or not the cache existed.

array getAllStubFiles()

No description

Return Value

array

string getStubFileContent(string $path)

No description

Parameters

string $path

Return Value

string

string getStubsRootPath()

No description

Return Value

string