/**
  * @dataProvider etherpadConfs
  */
 public function testListAllPads($protocol, $server, $port, $apiKey, $suffix, $text)
 {
     $responseStub = $this->_createResponseStub("0", "ok", '{"padIDs": ["firstPad", "secondPad"]}');
     $browserMock = $this->_createBrowserMock(array(array($this->once(), $this->stringStartsWith($protocol . '://' . $server . ':' . $port . '/api/1.2.1/listAllPads?apikey=' . $apiKey), $this->returnValue($responseStub))));
     $etherpad = new Client($protocol, $server, $port, $apiKey);
     $etherpad->setBrowser($browserMock);
     $pads = $etherpad->listAllPads();
     $this->assertEquals(2, sizeOf($pads));
     $this->assertEquals("firstPad", $pads[0]);
     $this->assertEquals($pads, array("firstPad", "secondPad"));
 }