Commit Graph

90 Commits

Author SHA1 Message Date
Alexander Leitner
9a34016753 removed var_dump in sinkeytest 2014-11-14 12:29:11 -05:00
Alexander Leitner
25923383db Some variables in while loops had bad naming 2014-11-14 12:28:17 -05:00
Alexander Leitner
b29334502b GMP and BC Math integrated into client library 2014-11-14 11:39:16 -05:00
Joshua Estes
6459deaeda Added files for integration testing 2014-11-03 13:07:22 -05:00
Sam Bohler
b6427559c6 Replaced cipher type default to use valid type, and fixed decrypt's bit-check logic 2014-10-24 07:28:02 -04:00
Joshua Estes
cd7834671f Updated the test so it knows the invoice interface was returned and updated some bad code 2014-10-09 18:31:09 -04:00
Joshua Estes
0ce5b834bf Added test and updated code for getting an invoice by invoice id 2014-10-09 16:37:23 -04:00
Joshua Estes
f1f6f31551 Merge pull request #89 from JoshuaEstes/SmallUpdateToInvoiceClass
Updated invoice so that full notifications can be enabled
2014-10-06 12:06:58 -04:00
Joshua Estes
c5440ac5f8 Updated invoice so that full notifications can be enabled 2014-10-06 11:28:07 -04:00
Joshua Estes
1fff4ab788 Updated construct to take the currency code as an optional argument
Added available currencies and updated the constructor and setCode to the currency class
Added phpmd to project
Updated documentation to some some conventions, updated docs to show the new usage of the currency class, also updated the testing documentation to show how to use phpmd
Small bug fix and made the configuration file have 100% code coverage
Code cleanup, removed unused variables
Updated dev dependencies to patch level
Removed the sin_key option since it will be going away soon

Removed Robo in composer.json since we do not use and updated travis config to allow failures in php 5.3 since we require 5.4 or greater
Deleted robo file

Large update with documentation updates, extra code functionality, and
bug fixes.
2014-10-06 10:45:34 -04:00
BitPay
57cdb71ce7 Fixed Client->createInvoice, invoice json now comes from nested data object. Tests to match 2014-10-06 08:31:18 -04:00
Joshua Estes
df0521b95d see https://phpunit.de/manual/current/en/test-doubles.html 2014-10-03 16:40:13 -04:00
ionux
701f6679f6 Added new PEM encoding and decoding functions. Also
added two corresponding tests.
2014-10-03 15:46:25 -04:00
Rich Morgan
f3675eac56 Fix for expected private key length
Range will probably be 72 < x < 78
2014-10-03 15:15:08 -04:00
Rich Morgan
052db7847b Fix for expected private key length
We're working with the decimal form of the number here, so it can be slightly variable since any leading zeroes from the hex are not used.  I generated 1,000,000 keys and the range of sizes were:

Array
(
    [0] => 78
    [1] => 77
    [2] => 76
    [3] => 75
    [4] => 74
    [5] => 73
    [6] => 72
)

I think it's safe to say we shouldn't see anything less than 72, although it's still theoretically possible since the number can be in the range of [1, n-1].
2014-10-02 13:31:13 -04:00
Alexander Leitner
3c6d5e266f Update ItemTest.php 2014-10-02 12:25:24 -04:00
Alex Leitner
78338661ce Changed In the Item class, the property is declared to be of type float. Added more tests for setPrice 2014-10-02 11:25:05 -04:00
Sam Bohler
4425ec1432 Fixes #68: removed duplicated mcrypt code from Bitauth.php and moved appropriate tests to McryptExtension test 2014-10-02 10:31:38 -04:00
Joshua Estes
2c189a4d54 Updated key_storage option to take a class name, updated documentation and added test 2014-10-02 08:55:03 -04:00
Joshua Estes
999e466b9b Found another bug with loading classes and also some of the tests were invalid so they were fixed as will 2014-09-30 15:24:42 -04:00
Joshua Estes
21f67c120b Updated the autoloader so that it is prepanded to the queue and added an unregister method, also updated the tests 2014-09-30 13:33:28 -04:00
Sam Bohler
c15083d309 Replaced full-text licenses with references 2014-09-29 09:16:06 -04:00
Joshua Estes
e9942248fa Updates that provide the client object to be tested better and have a lot better control over the inputs and outputs of the responses and the requests sent 2014-09-26 09:27:23 -04:00
Joshua Estes
78b7a65adb Updated code coverage with currencies test 2014-09-25 20:42:59 -04:00
Joshua Estes
2a4d1080af Updated so test will pass 2014-09-25 17:41:56 -04:00
Joshua Estes
e0663840b4 Updated test to throw an exception 2014-09-25 16:18:45 -04:00
Joshua Estes
dad50100da Merge remote-tracking branch 'upstream/master' into CodeCoverageIncrease
* upstream/master:
  Corrected test parameter
  Corrected base point param assignment
  Fixed binary string being reversed
  Corrected curve params
  Fixed incorrect public key param usage
  Removed x,y code assignments for private key
  Fixed: variable name typo
2014-09-25 16:14:58 -04:00
Joshua Estes
5afd48ebcd Updated the secure random class so that it now has 100% code coverage 2014-09-25 16:14:25 -04:00
Rich Morgan
e400946d22 Corrected test parameter 2014-09-25 16:05:25 -04:00
Joshua Estes
d68511ddeb Updated the Base58 class and tests to cover a little more 2014-09-25 15:38:29 -04:00
Joshua Estes
0c7bd40311 Updated fingerprint test to cover the class 100%, refactored the fingerprint class and caught a small bug 2014-09-25 15:20:29 -04:00
Joshua Estes
e055067d95 Merge pull request #45 from JoshuaEstes/MoreRandomFixesAndUpdates
More random fixes and updates
2014-09-24 15:02:05 -04:00
Joshua Estes
3d18de8f05 Small bug fixes with the decodeHex function 2014-09-24 14:57:43 -04:00
Joshua Estes
c41fb6a6d1 It always helps to test the correct function 2014-09-24 13:59:02 -04:00
Joshua Estes
1ffcdebcd5 Added and updated comments and added some new tests 2014-09-24 12:48:37 -04:00
Joshua Estes
19745548c3 A few code cleanups for public key and public key testing 2014-09-24 12:18:17 -04:00
Joshua Estes
4213abf5e2 Updated a few tests and added a little more functionality to public key class 2014-09-24 11:48:35 -04:00
Rich Morgan
9778053c27 Merge pull request #44 from JoshuaEstes/MoreRandomFixesAndUpdates
Lots of small bug fixes, updates
2014-09-24 11:36:22 -04:00
Joshua Estes
292662d198 Made Point serializable 2014-09-24 11:10:57 -04:00
Joshua Estes
b65c5f57e8 Found issues with the keys 2014-09-24 10:34:50 -04:00
Joshua Estes
331fd48491 Added and updated tests, ran php-cs-fixer on src/ and tests/ still having a few issues with signatures, tests should help find the issues 2014-09-24 09:34:23 -04:00
Joshua Estes
2841f4d240 Update GmpTest.php so code is not getting run so it does not impact code coverage reports 2014-09-24 08:33:06 -04:00
Joshua Estes
d4c2563099 Merge pull request #41 from JoshuaEstes/updates/AddedMoreTests
Updates/added more tests
2014-09-24 08:13:10 -04:00
Joshua Estes
edf0c15cfb Made sure everything is PSR1 and PSR2 standard 2014-09-23 15:49:07 -04:00
Joshua Estes
b51180515a Made sure everything is PSR1 and PSR2 standard 2014-09-23 15:47:39 -04:00
Joshua Estes
efac474377 refactored and added a lot of tests, made use of the point class more in functions and made a curve parameter interface so that mock interfaces can be used later in testing 2014-09-23 15:36:40 -04:00
Rich Morgan
37d9794999 Create FingerprintTest.php 2014-09-23 15:20:59 -04:00
Joshua Estes
55213f8485 Added secure random test 2014-09-23 11:46:55 -04:00
Joshua Estes
857abeb25e Added bootstrap.php for testing when coding inside the vendor directory, updated docs, added TokenTest 2014-09-23 11:04:40 -04:00
Rich Morgan
15965853bf Formatting 2014-09-19 19:16:56 -04:00