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

testLoginWithArray() public method

Tests that attempted exploitation via malformed credential submission is not possible.
public testLoginWithArray ( )
    public function testLoginWithArray()
    {
        $subject = new Form(array('model' => __CLASS__, 'validators' => array('password' => false)));
        $request = (object) array('data' => array('username' => array('!=' => ''), 'password' => ''));
        $result = $subject->check($request);
        $this->assertNull($result['username']);
    }