DMS\Filter\Rules\RuleTest::testOptionExceptionInformation PHP Method

testOptionExceptionInformation() public method

    public function testOptionExceptionInformation()
    {
        try {
            $rule = new MultipleOptionsRule(array('invalid' => 'option'));
        } catch (InvalidOptionsException $e) {
            $this->assertInternalType('array', $e->getOptions());
            $this->assertContains('invalid', $e->getOptions());
        }
    }