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

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

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