public function setUp()
 {
     $configuration = new RecordsFileConfiguration();
     $configuration->addContentType('profiles', __DIR__ . '/../../resources/RecordsFileExample/profiles.cmdl', __DIR__ . '/../../resources/RecordsFileExample/profiles.json');
     $connection = $configuration->createReadOnlyConnection();
     $this->connection = $connection;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $configuration = new RecordsFileConfiguration();
     $configuration->addContentType('profiles', __DIR__ . '/../../resources/RecordsFileExample/profiles.cmdl', __DIR__ . '/../../resources/RecordsFileExample/profiles.json');
     $connection = $configuration->createReadOnlyConnection();
     $repository = new CachingRepository('phpunit', $connection);
     $fs = new Filesystem();
     $fs->remove(__DIR__ . '/../../../tmp/phpfilecache');
     $fs->mkdir(__DIR__ . '/../../../tmp/phpfilecache');
     $cache = new PhpFileCache(__DIR__ . '/../../../tmp/phpfilecache');
     $repository->setCacheProvider($cache);
     $this->repository = $repository;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }