Conditions | 1 |
Paths | 1 |
Total Lines | 39 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function testNull() { |
||
34 | |||
35 | $instance = new NullRequest(); |
||
36 | |||
37 | $this->assertInternalType( |
||
38 | 'boolean', |
||
39 | $instance->ping() |
||
40 | ); |
||
41 | |||
42 | $this->assertInternalType( |
||
43 | 'null', |
||
44 | $instance->setOption( 'foo', 42 ) |
||
45 | ); |
||
46 | |||
47 | $this->assertInternalType( |
||
48 | 'null', |
||
49 | $instance->getOption( 'foo' ) |
||
50 | ); |
||
51 | |||
52 | $this->assertInternalType( |
||
53 | 'null', |
||
54 | $instance->getLastTransferInfo() |
||
55 | ); |
||
56 | |||
57 | $this->assertInternalType( |
||
58 | 'string', |
||
59 | $instance->getLastError() |
||
60 | ); |
||
61 | |||
62 | $this->assertInternalType( |
||
63 | 'integer', |
||
64 | $instance->getLastErrorCode() |
||
65 | ); |
||
66 | |||
67 | $this->assertInternalType( |
||
68 | 'null', |
||
69 | $instance->execute() |
||
70 | ); |
||
71 | } |
||
72 | |||
74 |