Completed
Pull Request — master (#10)
by Massimiliano
03:22
created

NullTransport::executeRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
1
<?php declare(strict_types=1);
2
3
namespace Fazland\SkebbyRestClient\Transport;
4
5
/**
6
 * Null Transport.
7
 * Useful for testing purposes.
8
 *
9
 * @author Massimiliano Arione <[email protected]>
10
 */
11
class NullTransport implements TransportInterface
12
{
13
    public function executeRequest(string $uri, string $body): string
14
    {
15
        return '<?xml version="1.0" encoding="UTF-8"?>
16
<SkebbyApi_Public_Send_SmsEasy_Advanced generator="zend" version="1.0">
17
<test_send_sms_classic_report><remaining_sms>5</remaining_sms><id>1477056680</id><status>success</status></test_send_sms_classic_report>
18
</SkebbyApi_Public_Send_SmsEasy_Advanced>';
19
    }
20
}
21