Esempio n. 1
0
 /**
  * @dataProvider getServerUrls
  */
 public function testAcceptsDifferentTypesOfHostUrlsInTheConstructor($url, $expected)
 {
     $client = new ImboClient($url, array('publicKey' => 'public', 'privateKey' => 'private'));
     $urls = $client->getServerUrls();
     $this->assertInternalType('array', $urls);
     $this->assertCount(1, $urls);
     $this->assertSame($expected, $urls[0]);
 }