<?php

namespace Doctrine\Tests\Common\Annotations;

use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\Cache\InMemoryCache;
use Doctrine\Common\Annotations\CachedReader;

class CachedReaderTest extends AbstractReaderTest
{
    protected function getReader()
    {
        return new CachedReader(new AnnotationReader(), new InMemoryCache());
    }
}
<?php

namespace Doctrine\Tests\Common\Annotations;

use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\CachedReader;
use Doctrine\Common\Cache\ArrayCache;

class CachedReaderTest extends AbstractReaderTest
{
    private $cache;
    
    protected function getReader()
    {
        $this->cache = new ArrayCache();
        return new CachedReader(new AnnotationReader(), $this->cache);
    }
}
Refactor Annotations to remove unnecessary caching layer, add FileCacheReader and modified CachedReader not to have a local map of annotations anymore
Refactor Annotations to remove unnecessary caching layer, add FileCacheReader and modified CachedReader not to have a local map of annotations anymore

