This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
| <?php | |
| namespace Hitbtc; | |
| /** | |
| * show off @method | |
| * | |
| * @method string balance() balance( array $params ) | |
| * @method string ordersActive() ordersActive( array $params ) | |
| * @method string new_order() new_order( array $params ) | |
| * @method string cancel_order() cancel_order( array $params ) | |
| * @method string trades() trades( array $params ) |
| <?php | |
| abstract class TestCase extends \PHPUnit_Framework_TestCase | |
| { | |
| protected function assertException(callable $callback, $expectedException = 'Exception', $expectedCode = null, $expectedMessage = null) | |
| { | |
| $expectedException = ltrim((string) $expectedException, '\\'); | |
| if (!class_exists($expectedException) && !interface_exists($expectedException)) { | |
| $this->fail(sprintf('An exception of type "%s" does not exist.', $expectedException)); | |
| } |
| // Replacing callbacks with scumbacks | |
| // Promises to call you back but then doesn't | |
| // Getting your hopes up again | |
| // and again | |
| var brokenPromise = { | |
| then: doesnt | |
| }; | |
| function doesnt(callback){ | |
| return brokenPromise; |