public function testBuildView() { $options = array('image_path' => 'foo', 'image_filter' => 'bar', 'image_attr' => 'bazz', 'link_url' => 'http://liip.com', 'link_filter' => 'foo', 'link_attr' => 'bazz'); $view = new FormView(); $type = new ImageType(); $form = $this->getMock('Symfony\\Component\\Form\\Test\\FormInterface'); $type->buildView($view, $form, $options); foreach ($options as $name => $value) { $this->assertArrayHasKey($name, $view->vars); $this->assertEquals($value, $view->vars[$name]); } }