public function testCreateViewDifferentAttributesClosure()
 {
     $attr1 = function () {
     };
     $attr2 = function () {
     };
     $list = $this->getMock('Symfony\\Component\\Form\\ChoiceList\\ChoiceListInterface');
     $view1 = new \stdClass();
     $view2 = new \stdClass();
     $this->decoratedFactory->expects($this->at(0))->method('createView')->with($list, null, null, null, null, $attr1)->will($this->returnValue($view1));
     $this->decoratedFactory->expects($this->at(1))->method('createView')->with($list, null, null, null, null, $attr2)->will($this->returnValue($view2));
     $this->assertSame($view1, $this->factory->createView($list, null, null, null, null, $attr1));
     $this->assertSame($view2, $this->factory->createView($list, null, null, null, null, $attr2));
 }