Hackzilla\PasswordGenerator\Tests\Generator\AbstractPasswordGeneratorTest::testValidateValue PHP Method

testValidateValue() public method

public testValidateValue ( $option, $value, $return )
$option
$value
$return
    public function testValidateValue($option, $value, $return)
    {
        if ($return) {
            $this->setExpectedException(null);
        } else {
            $this->setExpectedException('\\InvalidArgumentException');
        }
        $this->_object->setOptionValue($option, $value);
        if ($return) {
            $this->assertSame($value, $this->_object->getOptionValue($option));
        }
    }