twig_is_selected_choice example

false, 0, [1, 'foo', 'foo10']],
        ];
    }

    /** * @dataProvider isSelectedChoiceProvider */
    public function testIsChoiceSelected($expected$choice$value)
    {
        $choice = new ChoiceView($choice$choice$choice.' label');

        $this->assertSame($expected, \Symfony\Bridge\Twig\Extension\twig_is_selected_choice($choice$value));
    }

    public function testStartTagHasNoActionAttributeWhenActionIsEmpty()
    {
        $form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\FormType', null, [
            'method' => 'get',
            'action' => '',
        ]);

        $html = $this->renderStart($form->createView());

        
Home | Imprint | This part of the site doesn't use cookies.