Phalcon\Test\Acl\Adapter\DatabaseTest::testShouldThrowExceptionWhenOptionsIsInvalid PHP Method

testShouldThrowExceptionWhenOptionsIsInvalid() public method

public testShouldThrowExceptionWhenOptionsIsInvalid ( string $expected, array $options )
$expected string
$options array
    public function testShouldThrowExceptionWhenOptionsIsInvalid($expected, $options)
    {
        $this->tester->setExpectedException('\\Phalcon\\Acl\\Exception', "Parameter '{$expected}' is required and it must be a non empty string");
        new Database($options);
    }