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

testUncallableValidator() public method

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