lithium\tests\cases\security\auth\adapter\FormTest::testUncallableGenericValidator PHP Method

testUncallableGenericValidator() public method

    public function testUncallableGenericValidator()
    {
        $subject = new Form(array('model' => __CLASS__, 'validators' => array(true, 'password' => false)));
        $request = (object) array('data' => array('username' => 'Bob'));
        $expected = 'Authentication validator is not callable.';
        $this->assertException($expected, function () use($subject, $request) {
            $subject->check($request);
        });
    }