public function shouldGetCommitsWithParams()
{
$expectedArray = array(array('id' => 'abcd1234', 'title' => 'A commit'), array('id' => 'efgh5678', 'title' => 'Another commit'));
$api = $this->getApiMock();
$api->expects($this->once())->method('get')->with('projects/1/repository/commits', array('page' => 2, 'per_page' => 25, 'ref_name' => 'master'))->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->commits(1, 2, 25, 'master'));
}