aboutsummaryrefslogtreecommitdiffstats
path: root/tests/random
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-07-13 00:49:48 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-07-13 01:44:41 +0200
commite11f9afdce7649cebbe3f40d8af6ef62f8042434 (patch)
tree6a0bc43477252d1cc947f1c75e992225087fe313 /tests/random
parente4707a8be75263e610b00b3d600144e797f576d9 (diff)
downloadforums-e11f9afdce7649cebbe3f40d8af6ef62f8042434.tar
forums-e11f9afdce7649cebbe3f40d8af6ef62f8042434.tar.gz
forums-e11f9afdce7649cebbe3f40d8af6ef62f8042434.tar.bz2
forums-e11f9afdce7649cebbe3f40d8af6ef62f8042434.tar.xz
forums-e11f9afdce7649cebbe3f40d8af6ef62f8042434.zip
[ticket/10265] Move mt_rand.php to wrapper folder and add _test suffix.
PHPBB3-10265
Diffstat (limited to 'tests/random')
-rw-r--r--tests/random/mt_rand.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/random/mt_rand.php b/tests/random/mt_rand.php
deleted file mode 100644
index d6502c4e80..0000000000
--- a/tests/random/mt_rand.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-/**
-*
-* @package testing
-* @copyright (c) 2011 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License
-*
-*/
-
-require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
-
-class phpbb_random_mt_rand_test extends phpbb_test_case
-{
- public function test_max_equals_min()
- {
- $result = phpbb_mt_rand(42, 42);
- $this->assertEquals(42, $result);
- }
-
- public function test_max_equals_min_negative()
- {
- $result = phpbb_mt_rand(-42, -42);
- $this->assertEquals(-42, $result);
- }
-
- public function test_max_greater_min()
- {
- $result = phpbb_mt_rand(3, 4);
- $this->assertGreaterThanOrEqual(3, $result);
- $this->assertLessThanOrEqual(4, $result);
- }
-
- public function test_min_greater_max()
- {
- $result = phpbb_mt_rand(4, 3);
- $this->assertGreaterThanOrEqual(3, $result);
- $this->assertLessThanOrEqual(4, $result);
- }
-
- public function test_min_greater_max_negative()
- {
- $result = phpbb_mt_rand(-3, -4);
- $this->assertGreaterThanOrEqual(-4, $result);
- $this->assertLessThanOrEqual(-3, $result);
- }
-}