Former\LiveValidationTest::testCanSetFieldAsRequiredAsArray PHP Method

testCanSetFieldAsRequiredAsArray() public method

    public function testCanSetFieldAsRequiredAsArray()
    {
        $this->former->withRules(array('foo' => array('required')));
        $input = $this->former->text('foo')->__toString();
        $this->assertHTML($this->matchField(array('required' => 'true')), $input);
        $this->assertLabel($input, 'foo', true);
        $this->assertHTML($this->matchControlGroup(), $input);
    }
LiveValidationTest