ParsedDataInMemoryStorageManagerTest
class ParsedDataInMemoryStorageManagerTest extends TestCase (View source)
Methods
No description
No description
No description
The getters document @return PHPClass[] etc., but array_filter preserves the keys of
the unfiltered entity list, so with mixed entity types they came back sparse — e.g.
hasX() is backed by a lazily built id index rather than a linear scan. The index must be dropped by invalidateCache(), or an entity added after an earlier hasX()/getX() call would be reported missing.
No description
Details
testManagerReturnsAnEmptyArrayForEmptyCollection()
No description
testManagerCanAddClass()
No description
testManagerCanFetchClasses()
No description
testTypedGettersReturnListsNotSparseArrays()
The getters document @return PHPClass[] etc., but array_filter preserves the keys of
the unfiltered entity list, so with mixed entity types they came back sparse — e.g.
keys [0, 2, 4] for three classes among five entities. That JSON-encodes as an object rather than an array and breaks any caller that assumes 0..n-1.
testIdIndexIsInvalidatedWhenEntitiesAreAddedLater()
hasX() is backed by a lazily built id index rather than a linear scan. The index must be dropped by invalidateCache(), or an entity added after an earlier hasX()/getX() call would be reported missing.
testHasXDistinguishesKindsWithTheSameId()
No description