Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ServerAdapterTest extends CommonTestClass |
||
12 | { |
||
13 | public function testPass(): void |
||
14 | { |
||
15 | $data = new Simplified\ServerAdapter(); |
||
16 | $this->assertInstanceOf(\ArrayAccess::class, $data); |
||
17 | $this->assertTrue(isset($data->PHP_SELF)); |
||
18 | $this->assertTrue(isset($data['PHP_SELF'])); |
||
19 | $data->PHP_SELF; |
||
20 | $data['PHP_SELF']; |
||
21 | } |
||
22 | |||
23 | public function testDie1(): void |
||
24 | { |
||
25 | $data = new Simplified\ServerAdapter(); |
||
26 | $this->expectException(InputException::class); |
||
27 | $data->foz = 'wuz'; |
||
|
|||
28 | } |
||
29 | |||
30 | public function testDie2(): void |
||
35 | } |
||
36 | |||
37 | public function testIterator(): void |
||
43 |