public function testGetPagerWithMultipleSort()
{
$self = $this;
$this->getOrderManager(function ($qb) use($self) {
$qb->expects($self->never())->method('andWhere');
$qb->expects($self->exactly(2))->method('orderBy')->with($self->logicalOr($self->equalTo('o.reference'), $self->equalTo('o.username')), $self->logicalOr($self->equalTo('ASC'), $self->equalTo('DESC')));
$qb->expects($self->once())->method('setParameters')->with($self->equalTo(array()));
})->getPager(array(), 1, 10, array('reference' => 'ASC', 'username' => 'DESC'));
}