summaryrefslogtreecommitdiffstats
path: root/tests
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
|
* Since open_basedir no longer falls through to OpenSSL, expect a failure.Scott2016-03-163-0/+277
|
* Prepare for 1.3Scott2016-03-161-1/+1
| | | | * Remove OpenSSL from available RNGs, due to overwhelming security concerns
* 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
|
* Refactor tests to use phpunit properly with standardized bootstrapping and ↵Anthony Ferrara2015-10-301-122/+0
| | | | maanging phpunit via composer
* Running `phpunit.sh each` will test each CSPRNG source.Scott2015-10-186-0/+51
|
* Merge pull request #64 from paragonie/windowsScott2015-10-181-2/+2
|\ | | | | Better test conditions for CAPICOM
| * Break out of the elseif structureScott2015-10-181-2/+2
| |
* | phpunit.sh: just adding quotes around "$1" fixes the erroroittaa2015-10-171-6/+4
|/
* Fix bash errorScott2015-10-171-4/+6
|
* 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-163-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
|
* Annotate test quitesScott2015-10-151-1/+5
|
* Use /dev/urandom if it's encapsulated by open_basedirScott2015-10-151-0/+5
|
* Use \Sodium\randombytes_uniform() for random_int()Scott2015-10-151-0/+3
|
* fix local filenamesChristian Flothmann2015-10-021-2/+2
|
* download compatible PHPUnit versionChristian Flothmann2015-10-021-2/+12
| | | | PHPUnit 5 is not compatible with PHP before 5.6 while PHPUnit 4 should be used for those PHP versions.
* Fix phpunit.sh path for non-composer buildsScott2015-09-231-1/+1
|
* 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.
* Uncommit phpunit.Scott2015-09-062-72791/+0
|
* If we're rocking PHP 7, this library should be a NOPScott2015-09-063-2/+72794
|
* Add test for mbstring.func_overloadScott2015-07-151-0/+5
|
* Add open_basedir testScott2015-07-151-0/+5
|
* 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
|
* If PHPUnit exits 1, so too should our shell scriptScott2015-07-081-2/+2
|
* 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
|
* Make tolerance calculations easier to read/configure, less error-proneScott2015-07-071-2/+7
|
* Fix full tests.Scott2015-07-073-26/+57
|
* Regardless of path, let's make Travis CI actually run tests.Scott2015-07-071-6/+7
|
* I will win this game, Travis CI.Scott2015-07-071-3/+3
|
* Bin it, we should be able to just load the single file.Scott2015-07-071-2/+2
|
* Can we force Travis to work?Scott2015-07-071-0/+3
|
* Separate unit tests from statistical tests, add travis.ymlScott2015-07-074-33/+96
|
* 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-073-1/+38
|
* True initial commitScott2015-07-072-0/+63