<commit_before><?php

namespace Test\Centreon;

use \Centreon\Internal\Logger;

class LoggerTest extends \PHPUnit_Framework_TestCase
{
    private $config;
    private $datadir;

    public function setUp()
    {
        $this->datadir = CENTREON_PATH . '/core/tests/data/';
        $filename = $this->datadir . '/test-loggers.ini';
        $this->config = new \Centreon\Internal\Config($filename);
        parent::setUp();
    }

    public function tearDown()
    {
        \Monolog\Registry::clear();
        parent::tearDown();
    }

    public function testLoad()<commit_msg>refs #5653; test on logger<commit_after><?php

namespace Test\Centreon;

use \Centreon\Internal\Logger;

class LoggerTest extends \PHPUnit_Framework_TestCase
{
    private $config;
    private $datadir;

    public static function setUpBeforeClass()
    {
        \Monolog\Registry::clear();
    }

    public function setUp()
    {
        $this->datadir = CENTREON_PATH . '/core/tests/data/';
        $filename = $this->datadir . '/test-loggers.ini';
        $this->config = new \Centreon\Internal\Config($filename);
        parent::setUp();
    }

    public function tearDown()
    {
        parent::tearDown();
    }

    public function testLoad()
{'fraction_non_alphanumeric': 0.13290113452188007, 'fraction_numerical': 0.0032414910858995136, 'mean_word_length': 2.697604790419162, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4492971', 'n_tokens_mistral': 394, 'n_tokens_neox': 379, 'n_words': 75}