Former\LiveValidationTest::testCanSetNestedBracketFieldAsRequiredAsArray PHP Method

testCanSetNestedBracketFieldAsRequiredAsArray() public method

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