Commit Graph

41 Commits

Author SHA1 Message Date
kakaska
84324e9f9c Merge branch 'master' into 3.0.x
# Conflicts:
#	.travis.yml
#	README.md
#	VERSION
#	composer.json
#	src/Bitpay/Client/Client.php
#	src/Bitpay/Client/ClientInterface.php
#	src/Bitpay/Client/Request.php
#	src/Bitpay/Client/Response.php
#	src/Bitpay/Config/Configuration.php
#	src/Bitpay/Currency.php
#	src/Bitpay/DependencyInjection/services.xml
#	src/Bitpay/Invoice.php
#	src/Bitpay/InvoiceInterface.php
#	src/Bitpay/Item.php
#	src/Bitpay/Network/Testnet.php
#	src/Bitpay/PrivateKey.php
#	src/Bitpay/Storage/EncryptedFilesystemStorage.php
#	src/Bitpay/Util/Util.php
#	tests/Bitpay/BitpayTest.php
#	tests/Bitpay/Client/Adapter/CurlAdapterTest.php
#	tests/Bitpay/Client/ClientTest.php
#	tests/Bitpay/Client/RequestTest.php
#	tests/Bitpay/Crypto/McryptExtensionTest.php
#	tests/Bitpay/ItemTest.php
#	tests/Bitpay/Math/BcEngineTest.php
#	tests/Bitpay/Network/LivenetTest.php
#	tests/Bitpay/Network/NetworkAwareTest.php
#	tests/Bitpay/Network/TestnetTest.php
#	tests/Bitpay/Storage/EncryptedFilesystemStorageTest.php
#	tests/DataFixtures/invoices/5NxFkXcJbCSivtQRJa4kHP.json
2019-02-19 13:40:58 +01:00
kakaska
0fb3a8cc24 Merge remote-tracking branch 'remotes/origin/fix-unit-tests'
# Conflicts:
#	tests/Bitpay/Client/ClientTest.php
2019-02-15 09:07:01 +01:00
kakaska
3087e0cb7c Fix tests in ClientTest 2019-02-14 20:02:37 +01:00
kakaska
46b4b18eb5 Throw BitpayException when BTCPAY server url is empty 2019-02-14 17:52:17 +01:00
kakaska
dc4f186bcc Fix mock configuration in ClientTest 2019-02-12 21:28:20 +01:00
kakaska
f3563d4675 Remove Network specific unit tests 2019-02-12 20:52:28 +01:00
Pieter Poorthuis
b88a7f6978 Fixed tests, fixed default timezone issues 2018-03-28 12:27:19 +02:00
Selim Salihovic
71b8805de6 Add missing methods to mock 2017-05-23 20:50:10 +02:00
Chris Kleeschulte
0e144004c6 Examples/Tutorial, price checking
- Upgraded examples to show how to interact with the config.yml file and encrypted file storage
- checkPriceAndCurrency will now allow prices that do not have fractions of main units (e.g. $1000)
2016-03-11 16:22:44 -05:00
Chris Kleeschulte
b2c805099a checkPriceAndCurrency
- should respect that numbers coming from the api might not have decimal points at all, but they are still valid
2016-03-02 15:17:25 -05:00
Chris Kleeschulte
0f8c3abd27 Fixed scope of PaymentUrlSet. 2016-02-05 12:42:44 -05:00
Leo Hochberg
f5cf55eed6 fixed clientTest to add newly required invoice interface method
added new test to make sure payment urls are accessed correctly
2016-02-05 12:15:04 -05:00
Chris Kleeschulte
e0ed633d50 Fixed invoice, expiration, and current time error
- client was trying to create objects from unix timestamps with millisecond resolution
- added a test to ensure these time-based objects are always in the past
2016-01-22 11:30:30 -05:00
Chris Kleeschulte
63bd1a6a0c Repaired tests based on current changes to the code. 2015-11-16 19:13:28 -05:00
Rich Morgan
82f1ea62b4 Updated copyright year and minor refactoring 2015-09-15 19:02:02 -04:00
ionux
ccf2fa1cb9 Merge branch 'master' into gh152
fix merge conflicts
2015-07-31 11:05:41 -04:00
Alex Leitner
44cdb69a08 Client::getInvoice now works with merchant and public facades 2015-06-22 15:46:04 -04:00
paul
397db094c2 This introduces new steps to check the format of price
check format of price to insure that it "looks like" a float
coerce price to a float
check precision of price against currency
2015-06-17 14:56:20 -04:00
Sam Bohler
05e0273c17 Fixes #148: Client now sets invoice tokens upon creation and retrieval 2015-06-04 07:21:34 -04:00
Sam Bohler
9027ce67e4 Fixes #144: BitPay API errors are now passthrough 2015-05-20 11:53:51 -04:00
Sam Bohler
114b5ea147 Token Update
Updated \Bitpay\Token to include pairingCode and pairingExpiration properties
Fixed \Bitpay\Client\Client to set tokens correctly:
    \Bitpay\Token::createdAt is correctly set as a DateTime object

Tests written for all changes
2015-02-03 18:05:58 -05:00
BitWasp
591f9c457a Add tests 2014-11-27 04:41:58 +00:00
Joshua Estes
307244139e Merge pull request #96 from afk11/payouts
Looks good, thank you
2014-11-24 09:39:05 -05:00
BitWasp
9d5a038210 Add tests for Client functions 2014-11-15 03:27:37 +00:00
BitWasp
1f2119eab5 Some tweaks, added tests to remaining Payout, PayoutInstruction and PayoutTransaction classes.
Began adding tests for Client functions
2014-11-14 05:41:07 +00:00
Joshua Estes
6459deaeda Added files for integration testing 2014-11-03 13:07:22 -05: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
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
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
b51180515a Made sure everything is PSR1 and PSR2 standard 2014-09-23 15:47:39 -04:00
Joshua Estes
f150bfa838 Removed monolog 2014-09-19 11:52:54 -04:00
Joshua Estes
8808864cd7 Ran php-cs-fixer on test files 2014-09-18 14:12:24 -04:00
Joshua Estes
f6ffda3de7 Working on testing the client a little more 2014-09-18 12:09:58 -04:00
Joshua Estes
450b874618 Updated so all tests are passing and adding some testing keys and a test configuration file 2014-09-16 10:47:30 -04:00
Joshua Estes
c5edfdbee5 Added license to all files 2014-09-12 08:23:29 -04:00
Joshua Estes
0350f05cf0 Initial Commit 2014-09-12 06:44:37 -04:00