<?php
namespace ccxt;

// ----------------------------------------------------------------------------

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

// -----------------------------------------------------------------------------
use React\Async;
use React\Promise;
include_once PATH_TO_CCXT . '/test/exchange/base/test_borrow_interest.php';
include_once PATH_TO_CCXT . '/test/exchange/base/test_shared_methods.php';

function test_fetch_borrow_interest($exchange, $skipped_properties, $code, $symbol) {
    return Async\async(function () use ($exchange, $skipped_properties, $code, $symbol) {
        $method = 'fetchBorrowInterest';
        $borrow_interest = Async\await($exchange->fetch_borrow_interest($code, $symbol));
        assert_non_emtpy_array($exchange, $skipped_properties, $method, $borrow_interest, $code);
        for ($i = 0; $i < count($borrow_interest); $i++) {
            test_borrow_interest($exchange, $skipped_properties, $method, $borrow_interest[$i], $code, $symbol);
        }
        return true;
    }) ();
}
