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

GetTest::testGetChallengeError()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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
}