<commit_before><?php
/**
 * This file is part of the TelegramBot package.
 *
 * (c) <NAME> aka LONGMAN <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Longman\TelegramBot\Tests\Unit\Commands;

use Longman\TelegramBot\Tests\Unit\TestCase;
use Longman\TelegramBot\Telegram;

/**
 * @package         TelegramTest
 * @author          <NAME> <<EMAIL>>
 * @copyright       <NAME> <<EMAIL>>
 * @license         http://opensource.org/licenses/mit-license.php  The MIT License (MIT)
 * @link            http://www.github.com/akalongman/php-telegram-bot
 */
class CommandTestCase extends TestCase
{
    /**
     * @var \Longman\TelegramBot\Telegram
     */
    protected $telegram;

    /**
     * @var \Longman\TelegramBot\Commands\Command
     */
    protected $command;

    /**
     * setUp
     */
    public function setUp()
    {
        $this->telegram = new Telegram('apikey', 'testbot');
        $this->telegram->addCommandsPath(BASE_COMMANDS_PATH . '/UserCommands');

        // Add custom commands dedicated to do some tests.
        $this->telegram->addCommandsPath(__DIR__ . '/CustomTestCommands');
        $this->telegram->getCommandsList();
    }

    /**
     * Make sure the version number is in the format x.x.x, x.x or x
     */
    public function testVersionNumberFormat()
    {
        $this->assertRegExp('/^(\d+\\.)?(\d+\\.)?(\d+)$/', $this->command->getVersion());
    }
}<commit_msg>Quick attemp to fix the tests<commit_after><?php
/**
 * This file is part of the TelegramBot package.
 *
 * (c) <NAME> aka LONGMAN <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Longman\TelegramBot\Tests\Unit\Commands;

use Longman\TelegramBot\Tests\Unit\TestCase;
use Longman\TelegramBot\Telegram;

/**
 * @package         TelegramTest
 * @author          <NAME> <<EMAIL>>
 * @copyright       <NAME> <<EMAIL>>
 * @license         http://opensource.org/licenses/mit-license.php  The MIT License (MIT)
 * @link            http://www.github.com/akalongman/php-telegram-bot
 */
class CommandTestCase extends TestCase
{
    /**
     * @var \Longman\TelegramBot\Telegram
     */
    protected $telegram;

    /**
     * @var \Longman\TelegramBot\Commands\Command
     */
    protected $command;

    /**
     * setUp
     */
    public function setUp()
    {
        $this->telegram = new Telegram('apikey', 'testbot');
        $this->telegram->addCommandsPath(BASE_COMMANDS_PATH . '/UserCommands');
        $this->telegram->addCommandsPath(BASE_PATH . '/../examples/Commands');

        // Add custom commands dedicated to do some tests.
        $this->telegram->addCommandsPath(__DIR__ . '/CustomTestCommands');
        $this->telegram->getCommandsList();
    }

    /**
     * Make sure the version number is in the format x.x.x, x.x or x
     */
    public function testVersionNumberFormat()
    {
        $this->assertRegExp('/^(\d+\\.)?(\d+\\.)?(\d+)$/', $this->command->getVersion());
    }
}
{'fraction_non_alphanumeric': 0.14924412994532005, 'fraction_numerical': 0.0, 'mean_word_length': 2.6120789779326365, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5203318', 'n_tokens_mistral': 958, 'n_tokens_neox': 965, 'n_words': 219}