1 | <?php |
||
17 | */ |
||
18 | class OptionBoolTest extends \PHPUnit_Framework_TestCase |
||
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 | } |
||
33 | } |
||
34 |