@@ 25-32 (lines=8) @@ | ||
22 | $this->ComodoDecodeCSR = new ComodoDecodeCSR(); |
|
23 | } |
|
24 | ||
25 | public function test301Redirect() |
|
26 | { |
|
27 | $stream = Psr7\stream_for('{"data" : "test"}'); |
|
28 | $response = new Response(301, ['Location' => 'https://comododecodecsr.tk'], $stream); |
|
29 | ||
30 | $test = $this->ComodoDecodeCSR->checkDVC($response); |
|
31 | $this->assertFalse($test, "Failed to check 301 redirect"); |
|
32 | } |
|
33 | ||
34 | public function test302Redirect() |
|
35 | { |
|
@@ 34-41 (lines=8) @@ | ||
31 | $this->assertFalse($test, "Failed to check 301 redirect"); |
|
32 | } |
|
33 | ||
34 | public function test302Redirect() |
|
35 | { |
|
36 | $stream = Psr7\stream_for('{"data" : "test"}'); |
|
37 | $response = new Response(302, ['Location' => 'https://comododecodecsr.tk'], $stream); |
|
38 | ||
39 | $test = $this->ComodoDecodeCSR->checkDVC($response); |
|
40 | $this->assertFalse($test, "Failed to check 302 redirect"); |
|
41 | } |
|
42 | } |
|
43 |