Former\LiveValidationTest::testCanSwitchTypesAccordingToRules PHP Метод

testCanSwitchTypesAccordingToRules() публичный Метод

    public function testCanSwitchTypesAccordingToRules($type)
    {
        $this->former->withRules(array('foo' => $type));
        $input = $this->former->text('foo')->__toString();
        $matcher = $this->matchField(array(), $type);
        $this->assertControlGroup($input);
        $this->assertHTML($matcher, $input);
    }
LiveValidationTest