1--TEST--
2Test rand function when min and max are in proper or inverted order
3--CREDITS--
4PHP TestFEst 2017 - PHPDublin, PHPSP - Joao P V Martins <jp.joao@gmail.com>
5--FILE--
6<?php
7$min_value = 10;
8$max_value = 20;
9$correct_order = rand($min_value, $max_value);
10$incorrect_order = rand($max_value, $min_value);
11var_dump($correct_order >= $min_value);
12var_dump($correct_order <= $max_value);
13var_dump($incorrect_order >= $min_value);
14var_dump($incorrect_order <= $max_value);
15?>
16--EXPECT--
17bool(true)
18bool(true)
19bool(true)
20bool(true)
21