protected function assertContainsInstanceofInCache($type)
{
$contains = false;
foreach ($this->compiledQueryCache->getCachedArray() as $cachedValue) {
if ($cachedValue instanceof $type) {
$contains = true;
}
}
$this->assertTrue($contains, 'Cache must contain an instance of ' . $type);
}