public function setUp()
 {
     $this->decoratorMock = $this->getMock('EMC\\TableBundle\\Table\\Type\\Decorator\\TableDecoratorInterface');
     $this->tableTypeMock = $this->getMock('EMC\\TableBundle\\Table\\Type\\TableTypeInterface');
     $this->columnTypeMock = $this->getMock('EMC\\TableBundle\\Table\\Column\\Type\\ColumnTypeInterface');
     $this->columnMock = $this->getMock('EMC\\TableBundle\\Table\\Column\\ColumnInterface');
     $this->columnMock->expects($this->any())->method('getType')->will($this->returnValue($this->columnTypeMock));
     $expectedView = array('a' => 1, 'b' => '2');
     $this->expectedView = $expectedView;
     $this->tableTypeMock->expects($this->any())->method('buildHeaderCellView')->willReturnCallback(function (&$view, $column) use($expectedView) {
         $view = $expectedView;
     });
     $this->tableTypeMock->expects($this->any())->method('buildBodyCellView')->willReturnCallback(function (&$view, $column) use($expectedView) {
         $view = $expectedView;
     });
     $this->tableMock = $this->getMock('EMC\\TableBundle\\Table\\TableInterface');
     $this->tableMock->method('getType')->will($this->returnValue($this->tableTypeMock));
     $this->queryConfig = new QueryConfig();
     $this->queryConfig->setLimit(5)->setSelect(array('t.a', 't.b', 't.c'))->setPage(2)->setOrderBy(array('t.d' => true, 't.e' => false))->addParameter('query', '%xxx%')->getConstraints()->add('LOWER(t.a) LIKE :query')->add('LOWER(t.c) LIKE :query');
 }