<?php
/**
 * Orange Management
 *
 * PHP Version 7.4
 *
 * @package   tests
 * @copyright Dennis Eichhorn
 * @license   OMS License 1.0
 * @version   1.0.0
 * @link      https://orange-management.org
 */
declare(strict_types=1);

namespace phpOMS\tests\Utils\RnG;

use phpOMS\Utils\RnG\Text;

/**
 * @testdox phpOMS\tests\Utils\RnG\TextTest: Random text generator
 *
 * @internal
 */
class TextTest extends \PHPUnit\Framework\TestCase
{
    /**
     * @testdox Random text can be generated
     * @covers phpOMS\Utils\RnG\Text
     * @group framework
     */
    public function testRnG() : void
    {
        $text = new Text(true, true);

        self::assertEquals('', $text->generateText(0));

        self::assertNotEquals(
            $text->generateText(300),
            $text->generateText(300)
        );

        self::assertGreaterThan(0, $text->getSentences());
    }
}
