Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class CurlOptsTest extends TestCase |
||
9 | { |
||
10 | public function testOffsetExists() |
||
17 | } |
||
18 | |||
19 | public function testArrayAccess() |
||
20 | { |
||
21 | $opts = new CurlOpts([]); |
||
22 | |||
23 | $opts[CURLOPT_BINARYTRANSFER] = true; |
||
24 | |||
25 | $this->assertTrue($opts->get(CURLOPT_BINARYTRANSFER)); |
||
26 | |||
27 | unset($opts[CURLOPT_BINARYTRANSFER]); |
||
28 | |||
29 | $this->assertNull($opts->get(CURLOPT_BINARYTRANSFER)); |
||
30 | } |
||
31 | |||
32 | public function testArrayIterator() |
||
41 | } |
||
42 | } |
||
45 |