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

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

    public function testCanForceFieldToImageAsArray()
    {
        $this->former->withRules(array('foo' => array('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