Phalcon\Test\Acl\Adapter\DatabaseTest::testShouldThrowExceptionWhenOptionsIsInvalid PHP 메소드

testShouldThrowExceptionWhenOptionsIsInvalid() 공개 메소드

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);
    }