public function shouldGetTreeWithParams()
{
$expectedArray = array(array('name' => 'dir/file1.txt'), array('name' => 'dir/file2.csv'));
$api = $this->getApiMock();
$api->expects($this->once())->method('get')->with('projects/1/repository/tree', array('path' => 'dir/', 'ref_name' => 'master'))->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->tree(1, array('path' => 'dir/', 'ref_name' => 'master')));
}