summaryrefslogtreecommitdiffstats
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* There is no pleasing Psalm, so let's just disable this check.v2.0.9Paragon Initiative Enterprises2017-03-031-2/+2
|
* PHP 5.3 doesn't have syntactic sugar.Scott2016-02-091-1/+1
|
* Add some more unit tests to catch type errors.Scott2016-02-082-3/+31
|
* Add RandomIntTest::testRandomRangeNicolas Grekas2015-12-311-0/+11
|
* UtilityTest.php: added test case for "1."oittaa2015-10-161-0/+3
|
* Updated UtilityTest.php with "1337e3" and "hello"oittaa2015-10-161-0/+6
|
* RandomIntTest.php: random_int("1337e3","1337e3")oittaa2015-10-161-1/+3
|
* Updated UtilityTest.php 64bit testsoittaa2015-10-161-2/+8
| | | Added failure cases for 64bit RandomCompat_intval tests and changed boundaries to be exactly at PHP_INT_MAX and ~PHP_INT_MAX.
* Fix more integer/float boundary issues.Scott2015-10-162-2/+26
|
* Fix failing unit tests, remove test cases added "for illustrative purposes".1.0.6Scott2015-10-151-13/+9
|
* Less code duplication, more unit tests.Scott2015-10-151-0/+62
|
* Even more assertions and edge cases.Scott2015-10-152-2/+15
|
* Also make random_bytes() ignore floats == PHP_INT_MAXScott2015-10-151-1/+11
|
* Correct fixScott2015-10-152-2/+9
|
* Add edge case testsScott2015-10-151-0/+9
|
* Compromise -- be compatible with PHP 7, but with sanityScott2015-10-151-23/+0
|
* Better weak-typing.Scott2015-10-151-0/+25
|
* Use \Sodium\randombytes_uniform() for random_int()Scott2015-10-151-0/+3
|
* Revert some unexpected whitespace changesDion Hulse2015-09-231-2/+1
|
* Compatibility with PHP7-RC3, PHP accepts numeric parameters (although the ↵Dion Hulse2015-09-231-2/+7
| | | | | | | error is "Integer" for invalid input) as such, it acepts floats and numeric strings. PHP will drop the fraction component of floats, both in random_int() and when using (int) typecasting. PHP will accept any numeric string, directly typecasting it for usage.
* If we're rocking PHP 7, this library should be a NOPScott2015-09-061-2/+3
|
* Remove duplicate assertion. We aren't the Department of Redundancy Department.Scott2015-07-121-1/+0
|
* Define range properly in unit test.Scott2015-07-101-1/+1
|
* Use ~ instead of -Scott2015-07-101-1/+1
|
* Fix test range (suggsted by @oittaa in #11)Scott2015-07-101-1/+1
|
* Add unit tests for updated random_int()Scott2015-07-091-2/+5
|
* Syntax errors when unit testing on PHP 5.3 are just rude. Some OS's still ↵Scott2015-07-082-4/+4
| | | | support 5.3.x
* Add unit tests for negative integers.Scott2015-07-081-3/+7
|
* Separate unit tests from statistical tests, add travis.ymlScott2015-07-071-33/+1
|
* More samples => narrower rangeScott2015-07-071-6/+7
|
* Add another testScott2015-07-071-0/+19
|
* Add some tests on the distribution of random values.Scott2015-07-071-0/+12
|
* Add some test coverageScott2015-07-072-0/+37
|
* True initial commitScott2015-07-071-0/+8