Passed
Branch master (fc5382)
by Fabian
03:13
created

GetTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
dl 0
loc 11
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetChallengeError() 0 9 1
1
<?php
2
namespace LE_ACME2Tests\Response\Order;
3
4
use LE_ACME2\Exception\OrderStatusInvalid;
5
use LE_ACME2Tests\Connector;
6
use PHPUnit\Framework\TestCase;
7
8
class GetTest extends TestCase {
9
10
    public function testGetChallengeError() {
11
12
        $rawResponse = Connector\RawResponse::createDummyFrom(
13
            Connector\RawResponse::HEADER_200,
14
            file_get_contents(dirname(__FILE__, 2) . DIRECTORY_SEPARATOR . '_JSONSamples' . DIRECTORY_SEPARATOR . 'OrderStatusInvalid.json')
15
        );
16
17
        $this->expectException(OrderStatusInvalid::class);
18
        $response = new \LE_ACME2\Response\Order\Get($rawResponse, 'http://dummy.org');
0 ignored issues
show
Unused Code introduced by
The assignment to $response is dead and can be removed.
Loading history...
19
    }
20
}