<commit_before><?php

namespace Luxifer\Tests;

abstract class DQLFunctionTest extends \PHPUnit_Framework_TestCase
{
    protected $config;

    protected function _getEntityManager()
    {
        $this->config = new \Doctrine\ORM\Configuration();

        $conn = array(
            'driverClass'  => 'Doctrine\Tests\Mocks\DriverMock',
            'wrapperClass' => 'Doctrine\Tests\Mocks\ConnectionMock',
            'user'         => 'john',
            'password'     => '<PASSWORD>'
        );

        $conn = \Doctrine\DBAL\DriverManager::getConnection($conn, $this->config);

        $this->config->addCustomDatetimeFunction('date', 'Luxifer\DQL\Datetime\Date');
        $this->config->addCustomDatetimeFunction('datediff', 'Luxifer\DQL\Datetime\DateDiff');
        $this->config->addCustomDatetimeFunction('dayofmonth', 'Luxifer\DQL\Datetime\DayOfMonth');<commit_msg>edit: bootstrap test<commit_after><?php

namespace Luxifer\Tests;

abstract class DQLFunctionTest extends \PHPUnit_Framework_TestCase
{
    protected $config;

    protected function _getEntityManager()
    {
        $this->config = new \Doctrine\ORM\Configuration();

        $conn = array(
            'driverClass'  => 'Doctrine\Tests\Mocks\DriverMock',
            'wrapperClass' => 'Doctrine\Tests\Mocks\ConnectionMock',
            'user'         => 'john',
            'password'     => '<PASSWORD>'
        );

        $conn = \Doctrine\DBAL\DriverManager::getConnection($conn, $this->config);

        $this->config->setProxyDir(__DIR__ . '/Proxies');
        $this->config->setProxyNamespace('Luxifer\Tests\Proxies');
        $this->config->addCustomDatetimeFunction('date', 'Luxifer\DQL\Datetime\Date');
        $this->config->addCustomDatetimeFunction('datediff', 'Luxifer\DQL\Datetime\DateDiff');
        $this->config->addCustomDatetimeFunction('dayofmonth', 'Luxifer\DQL\Datetime\DayOfMonth');
{'fraction_non_alphanumeric': 0.1480891719745223, 'fraction_numerical': 0.0, 'mean_word_length': 3.17960088691796, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 33, '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': '1869460', 'n_tokens_mistral': 563, 'n_tokens_neox': 553, 'n_words': 74}