| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | { |
||
| 20 | public function testAccessors() |
||
| 21 | { |
||
| 22 | $option = new OptionBool(CURLOPT_AUTOREFERER); |
||
| 23 | |||
| 24 | static::assertEquals(CURLOPT_AUTOREFERER, $option->getOption()); |
||
| 25 | static::assertFalse($option->getValue()); |
||
| 26 | |||
| 27 | $option->setValue(true); |
||
| 28 | static::assertTrue($option->getValue()); |
||
| 29 | |||
| 30 | $option->setValue('string'); |
||
| 31 | static::assertFalse($option->getValue()); |
||
| 32 | } |
||
| 34 |