Andreas Fischer
2d726cf0ed
Add missing Unit prefix to class Math_BigInteger_InternalTest.
2014-07-31 11:41:57 +02:00
Andreas Fischer
daca5e914f
Add some test cases for SHA512.
2014-07-26 13:49:42 +02:00
Andreas Fischer
d614274ed2
Add a few SSH2 preLogin tests.
2014-07-21 23:58:17 +02:00
Andreas Fischer
7dd01c6103
Put some assertions into testStatcacheFix().
2014-07-19 00:28:39 +02:00
terrafrost
41ae2fb130
SFTP: return $sftp object in new unit test method
2014-07-17 11:35:58 -05:00
terrafrost
6202d2c3ed
SFTP: add unit test for stat cache fix
2014-07-17 11:22:59 -05:00
Andreas Fischer
f360932343
Add unit test for (to be added) Net_SFTP_Stream::register().
2014-06-27 00:21:55 +02:00
Andreas Fischer
949cfcc867
Merge pull request #386 from terrafrost/symlink
...
SFTP: add readlink and symlink functions
* terrafrost/symlink:
SFTP: return $sftp object in unit tests
SFTP: fix unit test
SFTP: syntax error in unit test
SFTP: add unit tests for symlinks
SFTP: add readlink and symlink functions
2014-06-23 16:37:55 +02:00
terrafrost
03c315d546
SFTP: return $sftp object in unit tests
2014-06-19 23:57:32 -05:00
terrafrost
05baf7b73b
SFTP: fix unit test
2014-06-19 13:57:42 -05:00
terrafrost
366410e2e1
SFTP: syntax error in unit test
2014-06-19 10:42:20 -05:00
Andreas Fischer
709c7c4d48
Merge pull request #385 from bantu/a-random-change
...
Random: include the Crypt_* classes if they're available
* bantu/a-random-change:
phpseclib_is_includable() -> phpseclib_resolve_include_path()
Drop Net_SSH2::_is_includable() method.
Random: a few changes to the stream_resolve_include_path_function
Replace stream_resolve_include_path with phpseclib_is_includable.
Random: add explanatory comment
SSH2: replace _is_includable() with stream_resolve_include_path
Random: include the Crypt_* classes if they're available
2014-06-19 16:08:59 +02:00
terrafrost
f95bf8b10b
SFTP: add unit tests for symlinks
2014-06-19 09:00:23 -05:00
Andreas Fischer
fd65c55720
phpseclib_is_includable() -> phpseclib_resolve_include_path()
2014-06-19 14:57:09 +02:00
Andreas Fischer
9c90beaf82
Replace stream_resolve_include_path with phpseclib_is_includable.
2014-06-17 14:38:24 +02:00
Andreas Fischer
9716d9b7e5
Merge pull request #380 from terrafrost/server-host-key
...
SSH2: make it so you can verify server public host key without logging on
* terrafrost/server-host-key:
SSH2: rm redundant part of SSH2 unit test
SSH2: add unit test for getServerPublicHostKey
SSH2: make it so you can verify server public host key without logging on
2014-06-17 11:37:36 +02:00
terrafrost
2e06a14a8a
SSH2: rm redundant part of SSH2 unit test
2014-06-16 23:58:00 -05:00
terrafrost
bbce7c4762
SSH2: add unit test for getServerPublicHostKey
2014-06-16 18:54:26 -05:00
Andreas Fischer
f807d8799e
Merge pull request #370 from terrafrost/pkcs8
...
RSA: add support for PKCS8 encoded private keys
* terrafrost/pkcs8:
Crypt/Base: readability improvement
RSA: CS adjustments
RSA: rename PUBLIC_FORMAT_PKCS1_RAW -> PUBLIC_FORMAT_PKCS8
RSA: add PKCS8 unit tests
RSA: add support for saving encrypted PKCS8 keys
Crypt/Base: adjust default key size for pbkdf1
RSA: add support for loading PKCS8 encrypted private keys
Crypt/Base: add support for pbkdf1
RSA: add support for saving to PKCS8 (unencrypted)
2014-06-17 00:36:54 +02:00
terrafrost
92e6b23528
BigInteger: unit test update
2014-06-15 12:13:56 -05:00
terrafrost
281a8c669e
BigInteger: fix unit tests
2014-06-14 20:47:57 -05:00
terrafrost
46166c7351
BigInteger: make it so you can do $min->random($max)
...
...and $min->randomPrime($max) as well
2014-06-14 14:07:33 -05:00
terrafrost
4878f2a99b
RSA: add PKCS8 unit tests
2014-06-13 12:39:12 -05:00
Andreas Fischer
6e796d091a
Merge pull request #364 from terrafrost/sftp-sort2
...
SFTP: add the ability for nlist() and rawlist() to be sorted
* terrafrost/sftp-sort2:
SFTP: update one last comment
SFTP: update unit test comments
SFTP: add new line to end of unit test
SFTP: assertEquals -> assertSame
SFTP: reset sort options every time and update unit test
SFTP: rm whitespace
SFTP: define $sortOptions
SFTP: add the ability for nlist() and rawlist() to be sorted
2014-06-09 20:19:33 +02:00
terrafrost
3ded2d9f81
SFTP: update one last comment
2014-06-09 11:33:17 -05:00
terrafrost
0cb6fbc983
SFTP: update unit test comments
2014-06-09 09:46:31 -05:00
terrafrost
fb1dbbf75c
SFTP: add new line to end of unit test
2014-06-09 09:44:27 -05:00
terrafrost
c8343e77c7
SFTP: assertEquals -> assertSame
2014-06-09 09:42:07 -05:00
terrafrost
0e2b2a416b
SFTP: reset sort options every time and update unit test
2014-06-09 09:22:30 -05:00
terrafrost
231566c1fb
X509: Unit test CS changes
2014-06-05 09:23:22 -05:00
terrafrost
4a98679519
X509: move location of SPKAC unit test
2014-06-05 09:03:17 -05:00
terrafrost
daa466db94
Merge branch 'master' of https://github.com/phpseclib/phpseclib into spkac
2014-06-05 08:40:49 -05:00
terrafrost
0cc6383c32
X509: rm trailing white space from unit test
2014-06-04 00:22:46 -05:00
terrafrost
75a045bec4
X509: add SPKAC unit test
2014-06-04 00:11:57 -05:00
Andreas Fischer
07e1f954de
Merge pull request #325 from terrafrost/rsa-public-key
...
RSA: auto-detect public keys vs private keys
* terrafrost/rsa-public-key:
RSA: update unit test file
RSA: auto-detect public keys vs private keys
2014-06-01 22:17:38 +02:00
Andreas Fischer
c7d4fd937e
Merge pull request #358 from bantu/ticket/321
...
Reimplement testGenerateIdentifier
* bantu/ticket/321:
Reimplement testGenerateIdentifier to fix #321
2014-06-01 22:00:08 +02:00
Andreas Fischer
83ddfe09a6
Reimplement testGenerateIdentifier to fix #321
2014-06-01 21:49:40 +02:00
Andreas Fischer
4af647f170
Split Unit/Functional Test Suites.
2014-06-01 21:13:20 +02:00
Andreas Fischer
5afc865775
SFTP Functional tests: Make use of assertNotSame
2014-05-22 00:40:49 +02:00
Andreas Fischer
8a43f02ae9
SFTP Functional tests: Keep story linear.
2014-05-22 00:40:49 +02:00
terrafrost
6e8e44b120
SFTP: add more unit tests
2014-05-22 00:40:49 +02:00
Andreas Fischer
e0e62360df
SFTP: Rudimentary tests for file_exists(), is_file(), is_dir().
2014-05-14 01:11:19 +02:00
Andreas Fischer
602fb55195
Skip testDiffieHellmanKeyAgreement on TravisCI+5.3.3+Internal in the meantime.
2014-04-29 17:42:33 +02:00
Andreas Fischer
9e79fc2407
Remove randomness from testDiffieHellmanKeyAgreement.
2014-04-29 16:37:10 +02:00
Andreas Fischer
7e007ad879
Link testDiffieHellmanKeyAgreement to corresponding bug ticket.
2014-04-29 16:37:10 +02:00
Andreas Fischer
e839fa80a3
Add Diffie-Hellman Test to BigInteger Testcase.
2014-04-29 16:37:10 +02:00
terrafrost
9eb6e1ed67
BigInteger: update comments and add test case
2014-04-29 16:32:25 +02:00
terrafrost
d9d224572b
RSA: update unit test file
2014-04-18 11:41:08 -05:00
Andreas Fischer
aa96490018
Remove space at end of line in tests/File/ASN1/DevTest.php.
2014-04-18 17:47:05 +02:00
Andreas Fischer
b2e1cc1b02
Merge pull request #326 from bantu/phpunit-group-source-prefix
...
bug280 is ambiguous. Use github prefix instead.
* bantu/phpunit-group-source-prefix:
bug280 is ambiguous. Use github prefix instead.
2014-04-18 17:07:21 +02:00
Andreas Fischer
b676cc2690
Merge pull request #241 from mpscholten/ssh2-tests
...
Added some simple Net_SSH2 tests
* mpscholten/ssh2-tests:
Added some simple Net_SSH2 tests
Conflicts:
tests/Net/SSH2Test.php
2014-04-18 16:54:24 +02:00
Andreas Fischer
4728823fc9
bug280 is ambiguous. Use github prefix instead.
2014-04-18 16:49:37 +02:00
Andreas Fischer
14cfcc1b53
Merge pull request #310 from terrafrost/keberos-fix
...
ASN1 changes
* terrafrost/keberos-fix:
ASN1: test case updates
ASN1: add test cases for latest changes
ASN1: CS update
ASN1: make developing new ASN.1 scripts a little easier
ASN1: make it so bit string's can have an optional minimum size
ASN1: explicit application tags didn't work (although implicit ones did)
2014-04-18 16:47:48 +02:00
terrafrost
f970b69a9e
ASN1: test case updates
2014-04-17 23:53:33 -05:00
terrafrost
317efaf28a
RSA: auto-detect public keys vs private keys
2014-04-17 10:30:32 -05:00
terrafrost
27b3ea4059
ASN1: add test cases for latest changes
2014-04-16 15:18:45 -05:00
Andreas Fischer
fe50a6cdac
A few functional tests for Net_SFTP.
2014-04-07 18:16:59 +02:00
Andreas Fischer
96aaa262eb
Use pwd instead of ls. If the directory is empty callback will not be called.
2014-04-07 17:59:21 +02:00
Andreas Fischer
90ff32d56d
Tests for bug280.
2014-03-06 11:55:14 +01:00
Andreas Fischer
3d3d55b407
Mark SSH2 Test as Incomplete on Travis PHP 5.3.3 and below for now.
2014-03-04 14:56:42 +01:00
Andreas Fischer
00c19f4cc1
Add basic SSH2 functional test as an example.
2014-03-03 02:14:27 +01:00
Andreas Fischer
ea31d9d38c
Introduce abstract class for functional tests.
2014-03-03 01:34:43 +01:00
Andreas Fischer
ef528ea879
Apply coding guidelines (with exceptions) to the tests directory.
2014-02-15 20:05:30 +01:00
Andreas Fischer
6fc22d5405
Add build directory.
2014-02-15 18:51:09 +01:00
Andreas Fischer
56f1ada5c1
CS: Each file MUST end with exactly one newline character
2014-02-10 14:51:35 +01:00
Andreas Fischer
0a639cd7f5
Add a folder for travis.
2014-01-22 03:41:24 +01:00
Graham Campbell
1c2796e3eb
Cleaned up whitespace
2014-01-18 17:29:25 +00:00
Marc Philip Scholten
b7092ebc21
Added some simple Net_SSH2 tests
...
Placed helper at top again in my test
Removed a whitespace
2013-12-28 21:29:52 +01:00
terrafrost
268ec2e5d1
Merge branch 'ssh2-identifier'
2013-12-28 13:49:05 -06:00
Marc Philip Scholten
19be15c4c4
Fixed typos
2013-12-28 18:16:09 +01:00
terrafrost
40bf0b1e59
RSA: add unit test for $rsa->loadKey()
2013-12-27 10:41:07 -06:00
Marc Philip Scholten
3d5262156d
Fixed missing dataProvider in test
2013-12-26 21:03:00 +01:00
Marc Philip Scholten
699ac0b0e9
Rewritten test to just check for possible combinations
2013-12-26 21:02:17 +01:00
Marc Philip Scholten
4817d28a54
Refactored Net_SSH2::$identifier and added unit tests
...
Added return tag
2013-12-26 21:00:58 +01:00
Andreas Fischer
9c7c01c337
Merge pull request #223 from mpscholten/fix-ssh1-php55
...
Fix Net_SSH1 on Php5.5 (/e preg_replace modifier)
* mpscholten/fix-ssh1-php55:
Fixed classname of test
Fixed some wrong @see annotations
Fixed /e preg_replace modifier exactly like in 0dc8b27a6a
Added Net_SSH1::_format_log test
2013-12-26 18:41:25 +01:00
Marc Philip Scholten
2a7b6e39fb
Fixed classname of test
2013-12-26 12:16:08 +01:00
Andreas Fischer
8bb80b3df0
CS: Add useful whitespace CodeSniffer rules.
2013-12-26 00:33:08 +01:00
Marc Philip Scholten
c5f8bab065
Added Net_SSH1::_format_log test
...
Conflicts:
tests/Net/SSH1Test.php
2013-12-18 16:39:20 +01:00
Marc Philip Scholten
46a1a0c1c2
Fixed typo and fixed bug with destructor being called in test on ssh object
2013-12-17 20:09:26 +01:00
Marc Philip Scholten
f0b9f59bcc
Added test for Net_SSH2::_format_log()
2013-12-16 19:49:15 +01:00
Andreas Fischer
f0f029b2c1
CS: Fix "PEAR.Commenting.ClassComment.WrongTagOrder" sniff.
2013-12-11 18:33:18 +01:00
Andreas Fischer
3db1fbb072
CS: Fix "PEAR.Commenting.FileComment.TagIndent" sniff.
2013-12-10 20:10:37 +01:00
Andreas Fischer
cee0f3343b
CS: Fix "PEAR.Formatting.MultiLineAssignment.EqualSignLine" sniff.
2013-12-07 20:47:30 +01:00
Andreas Fischer
6d1fb9f7db
CS: Fix "PEAR.Files.IncludingFile.UseIncludeOnce" sniff.
2013-12-06 01:03:34 +01:00
Andreas Fischer
bc6ff96292
Fix "PEAR.Files.IncludingFile.BracketsNotRequired" sniff.
2013-12-05 23:17:40 +01:00
Andreas Fischer
161bb7d362
CS: Fix PEAR.ControlStructures.ControlSignature sniff.
2013-12-03 21:04:13 +01:00
Andreas Fischer
9ca5f83dec
CS: Fix Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma sniff.
2013-12-03 20:52:08 +01:00
Andreas Fischer
e09f1b730e
CodeSniffer: Fix PEAR.Classes.ClassDeclaration.OpenBraceNewLine sniff.
2013-12-03 19:34:41 +01:00
Andreas Fischer
ca9c8b107b
CodeSniffer: Fix Generic.PHP.LowerCaseConstant.Found sniff.
2013-12-03 18:54:43 +01:00
Andreas Fischer
8ef3a01b6e
Base CodeSniffer ruleset on PEAR ruleset.
2013-12-01 03:40:08 +01:00
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