function it_should_create_resource_with_form_options() { $text = new TextType('resources.resource_text'); $text->setFormOptions(array('attr' => array('class' => 'class-name'))); $this->beConstructedWith(__DIR__ . '/../../../../Fixtures/simple_valid_map_with_form_options.yml', $this->resources); $this->getResource('resources.resource_text')->shouldBeLike($text); }