Commit Graph

579 Commits

Author SHA1 Message Date
Andreas Fischer
fccf3e8c8a Set the default timezone in tests bootstrap file. 2013-11-29 09:22:08 +01:00
Andreas Fischer
399407fdef Merge pull request #186 from bantu/code-sniffer
Introducing Code Sniffer / Ensuring coding standard

* bantu/code-sniffer:
  Only install composer dependencies in PHP 5.5 environment.
  Run code sniffer on PHP 5.5 environment on Travis CI.
  Add ruleset for phpseclib coding standard.
  Install composer dependencies on Travis CI.
  Add composer.lock file.
  Add CodeSniffer as composer development dependency.
2013-11-26 20:09:30 +01:00
Andreas Fischer
dc0fc84bd0 Add ruleset for phpseclib coding standard. 2013-11-23 21:01:26 +01:00
Andreas Fischer
de16c37c82 Use a variable for subfolder string. 2013-11-23 20:02:41 +01:00
Andreas Fischer
fa229bb186 Use branch name as a subfolder for code coverage reports. 2013-11-23 20:00:44 +01:00
Andreas Fischer
ec58a8bce3 [coverage-html] Add comment to expect installation. 2013-01-16 23:44:29 +01:00
Andreas Fischer
dda7498b60 [coverage-html] Put fingerprint of RSA host key into variable. 2013-01-16 23:43:28 +01:00
Andreas Fischer
dbf7265e19 [coverage-html] Add latest symlink. 2013-01-16 23:27:28 +01:00
Andreas Fischer
862bc5d6dc [coverage-html] Use PHP version number in folder name. 2013-01-16 23:18:30 +01:00
Andreas Fischer
9758ab1688 [coverage-html] Generate HTML code coverage report and rsync it out of travis. 2013-01-16 18:59:35 +01:00
Andreas Fischer
93d7bf4444 [constant-trickery] Also test without OpenSSL. 2013-01-13 19:15:35 +01:00
Andreas Fischer
6d24b92b11 [constant-trickery] Better name for constant redefine method. 2013-01-13 19:08:20 +01:00
Andreas Fischer
f62a9114b3 [constant-trickery] Reimport class definition to clear static variables. 2013-01-12 21:38:38 +01:00
Andreas Fischer
3c75fa1ad4 [constant-trickery] Also skip tests when required extension is missing. 2013-01-12 03:07:41 +01:00
Andreas Fischer
306f0711ed [constant-trickery] Try to use runkit to redefine mode constants. 2013-01-12 03:03:29 +01:00
Andreas Fischer
b83ca10246 [constant-trickery] Add extra test cases for BCMath and GMP. 2013-01-12 02:57:21 +01:00
Andreas Fischer
2ad6f71002 [constant-trickery] Provide infrastructure for setting mode constants. 2013-01-12 02:48:19 +01:00
Andreas Fischer
2c3b165556 [constant-trickery] Add PhpseclibTestCase. No longer use PHPUnit directly. 2013-01-12 02:34:46 +01:00
Andreas Fischer
f897e36e96 [constant-trickery] Turn existing BigIntegerTest into an abstract TestCase. 2013-01-12 02:21:51 +01:00
Andreas Fischer
6e597bfe25 [issue/39] Extend tests to cover other modes. Also IVs, keys, etc. 2013-01-05 21:11:57 +01:00
Andreas Fischer
f15bc38520 [issue/39] Test case for Github ContinuousBuffer issue 39. 2013-01-05 21:11:57 +01:00
Andreas Fischer
318ac0bd86 [issue/39] Abstract test case for Crypt_AES. 2013-01-05 21:11:57 +01:00
Andreas Fischer
bbb47168da [task/fix-test-autoloader] Fix autoloader to support failing/erroring tests.
Before showing error output PHPUnit 3.7.x calls class_exists() on some PHPUnit
Extension class names that may not exist. Calling class_exists() already
triggers the autoload function in which require() then obviously fails.

We now check whether a file is includable by simply looping over all possible
include directories.
2013-01-03 18:51:15 +01:00
Andreas Fischer
f631785365 [feature/hash-tests] Tests for the MD5 hash algorithm. 2012-08-20 13:55:03 +02:00
Andreas Fischer
99bfab11a6 [feature/hash-tests] Some infrastructure for testing the hash implementations. 2012-08-20 13:55:03 +02:00
Andreas Fischer
dadbddb97c [feature/phpunit] Change test class name to reflect the path it is in. 2012-06-06 13:08:11 +02:00
Andreas Fischer
8571aa0bad [feature/phpunit] Use SPL autoloading instead of manual loading. 2012-06-06 13:08:04 +02:00
Andreas Fischer
2da655a783 [feature/phpunit] Add some basic tests for the Math_BigInteger class. 2012-06-06 13:07:47 +02:00
Andreas Fischer
d707975426 [feature/phpunit] Add phpunit configuration and bootstrapping. 2012-06-06 13:07:36 +02:00