DummyTransport   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A executeRequest() 0 7 1
1
<?php declare(strict_types=1);
2
3
namespace Fazland\SkebbyRestClient\Transport;
4
5
/**
6
 * A dummy Transport that always returns the same response.
7
 * Useful for testing purposes.
8
 *
9
 * @author Massimiliano Arione <[email protected]>
10
 */
11
class DummyTransport implements TransportInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function executeRequest(string $uri, string $body): string
17
    {
18
        return '<?xml version="1.0" encoding="UTF-8"?>
19
<SkebbyApi_Public_Send_SmsEasy_Advanced generator="zend" version="1.0">
20
<test_send_sms_classic_report><remaining_sms>5</remaining_sms><id>1477056680</id><status>success</status></test_send_sms_classic_report>
21
</SkebbyApi_Public_Send_SmsEasy_Advanced>';
22
    }
23
}
24