Pinq\Tests\Integration\Providers\DSL\EnglishDSLProviderCachingTest::assertContainsInstanceofInCache PHP Метод

assertContainsInstanceofInCache() защищенный Метод

protected assertContainsInstanceofInCache ( $type )
    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);
    }