public function shouldGetAllGroups()
{
$expectedArray = array(array('id' => 1, 'name' => 'A group'), array('id' => 2, 'name' => 'Another group'));
$api = $this->getApiMock();
$api->expects($this->once())->method('get')->with('groups', array('page' => 1, 'per_page' => 10))->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->all(1, 10));
}