public function shouldGetCommits()
{
$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' => 0, 'per_page' => AbstractApi::PER_PAGE, 'ref_name' => null))->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->commits(1));
}