<commit_before><?php

namespace Cmfcmf\Module\MediaModule\Tests\Listener;

use Cmfcmf\Module\MediaModule\Listener\ThirdPartyListener;

class ThirdPartyListenerTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var ThirdPartyListener
     */
    private $listener;

    public function setUp()
    {
        $this->listener = new ThirdPartyListener(__DIR__ . '/../../../..');
        \ModUtil::registerAutoloaders();
    }

    public function testIfEventMethodsExist()<commit_msg>Skip test if Scribite is not available.<commit_after><?php

namespace Cmfcmf\Module\MediaModule\Tests\Listener;

use Cmfcmf\Module\MediaModule\Listener\ThirdPartyListener;

class ThirdPartyListenerTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var ThirdPartyListener
     */
    private $listener;

    public function setUp()
    {
        if (!class_exists('Scribite_EditorHelper')) {
            $this->markTestSkipped(
                'The Scribite module is not installed.'
            );
        }
        $this->listener = new ThirdPartyListener(__DIR__ . '/../../../..');
        \ModUtil::registerAutoloaders();
    }

    public function testIfEventMethodsExist()
{'fraction_non_alphanumeric': 0.1184995737425405, 'fraction_numerical': 0.0, 'mean_word_length': 2.8874172185430464, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5988735', 'n_tokens_mistral': 344, 'n_tokens_neox': 331, 'n_words': 60}