eZ\Bundle\EzPublishCoreBundle\Tests\Imagine\Filter\AbstractFilterTest::testGetSetOptionWithDefaultValue PHP Method

testGetSetOptionWithDefaultValue() public method

public testGetSetOptionWithDefaultValue ( $optionName, $value, $defaultValue )
    public function testGetSetOptionWithDefaultValue($optionName, $value, $defaultValue)
    {
        $this->assertFalse($this->filter->hasOption($optionName));
        $this->assertSame($defaultValue, $this->filter->getOption($optionName, $defaultValue));
        $this->filter->setOption($optionName, $value);
        $this->assertTrue($this->filter->hasOption($optionName));
        $this->assertSame($value, $this->filter->getOption($optionName));
    }