<commit_before><?php

namespace Doctrine\Tests\Common\Cache;

use Doctrine\Common\Cache\CacheProvider;
use Doctrine\Common\Cache\SQLite3Cache;
use SQLite3;

/**
 * @requires extension sqlite3
 */
class SQLite3CacheTest extends CacheTest
{
    private $file;
    private $sqlite;

    protected function setUp() : void
    {
        $this->file = tempnam(null, 'doctrine-cache-test-');
        unlink($this->file);
        $this->sqlite = new SQLite3($this->file);
    }

    protected function tearDown() : void
    {
        $this->sqlite = null;  // DB must be closed before
        unlink($this->file);
    }

    public function testGetStats() : void
    {
        $this->assertNull($this->_getCacheDriver()->getStats());
    }
<commit_msg>Make SQLite3 tests actually run<commit_after><?php

namespace Doctrine\Tests\Common\Cache;

use Doctrine\Common\Cache\CacheProvider;
use Doctrine\Common\Cache\SQLite3Cache;
use SQLite3;

/**
 * @requires extension sqlite3 >= 3
 */
class SQLite3CacheTest extends CacheTest
{
    private $file;
    private $sqlite;

    protected function setUp() : void
    {
        $this->file = tempnam(null, 'doctrine-cache-test-');
        unlink($this->file);
        $this->sqlite = new SQLite3($this->file);
    }

    protected function tearDown() : void
    {
        $this->sqlite = null;  // DB must be closed before
        unlink($this->file);
    }

    public function testGetStats() : void
    {
        $this->assertNull($this->_getCacheDriver()->getStats());
    }

{'fraction_non_alphanumeric': 0.13633355393778954, 'fraction_numerical': 0.007941760423560556, 'mean_word_length': 2.886889460154242, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4149613', 'n_tokens_mistral': 476, 'n_tokens_neox': 466, 'n_words': 101}