Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testSuccessEndpoint() |
||
14 | { |
||
15 | $bybitApi = (new BybitAPI()) |
||
16 | ->setCredentials('https://api-testnet.bybit.com', 'fL02oi5qo8i2jDxlum', 'Ne1EE35XTprIWrId9vGEAc1ZYJTmodA4qFzZ'); |
||
17 | |||
18 | /** @var IResponseInterface $endpointResponse */ |
||
19 | $endpointResponse = $bybitApi->privateEndpoint(ReplaceOrder::class, |
||
20 | (new ReplaceOrderRequest()) |
||
21 | ->setSymbol('BTCUSDT') |
||
22 | ->setOrderId('4f279264-6d38-46c1-8216-7e5a2f110c11') |
||
23 | ->setPrice(68100) |
||
24 | )->execute(); |
||
25 | |||
26 | echo "Return code: {$endpointResponse->getReturnCode()} \n"; |
||
27 | echo "Return message: {$endpointResponse->getReturnMessage()} \n"; |
||
28 | |||
29 | /** @var ReplaceOrderResponse $orderInfo */ |
||
30 | $orderInfo = $endpointResponse->getResult(); |
||
31 | echo "Order ID: {$orderInfo->getOrderId()}\n"; |
||
32 | echo "Order Link ID: {$orderInfo->getOrderLinkId()}\n"; |
||
33 | |||
34 | $this->assertTrue(true); |
||
35 | } |
||
36 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths