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

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

    public function testCanForceFieldToImage()
    {
        $this->former->withRules(array('foo' => 'image'));
        $input = $this->former->file('foo')->__toString();
        $matcher = $this->matchField(array('accept' => 'image/jpeg,image/png,image/gif,image/bmp'), 'file');
        $this->assertControlGroup($input);
        $this->assertHTML($matcher, $input);
    }
LiveValidationTest