Former\LiveValidationTest::testCanSwitchTypesAccordingToRulesAsArray PHP Method

testCanSwitchTypesAccordingToRulesAsArray() public method

    public function testCanSwitchTypesAccordingToRulesAsArray($type)
    {
        $type = explode('|', $type);
        $this->former->withRules(array('foo' => $type));
        $input = $this->former->text('foo')->__toString();
        $matcher = $this->matchField(array(), $type[0]);
        $this->assertControlGroup($input);
        $this->assertHTML($matcher, $input);
    }
LiveValidationTest