mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 18:18:41 +00:00
31 lines
714 B
PHP
31 lines
714 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
|
|
namespace Tests\PHPUnit\phpOMS\Utils\RnG;
|
|
|
|
require_once __DIR__ . '/../../Autoloader.php';
|
|
|
|
use phpOMS\Utils\RnG\ArrayRandomize;
|
|
|
|
class ArrayRandomizeTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testRandomize()
|
|
{
|
|
$orig = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
|
|
|
|
self::assertNotEquals($orig, ArrayRandomize::yates($orig));
|
|
self::assertNotEquals($orig, ArrayRandomize::knuth($orig));
|
|
}
|
|
}
|