hasClient() public method

Checks if client exists in the hub.
public hasClient ( string $id ) : boolean
$id string client id.
return boolean whether client exist.
 /**
  * @depends testSetGet
  */
 public function testHasProvider()
 {
     $collection = new Collection();
     $clientName = 'testClientName';
     $clients = [$clientName => ['class' => 'TestClient1']];
     $collection->setClients($clients);
     $this->assertTrue($collection->hasClient($clientName), 'Existing client check fails!');
     $this->assertFalse($collection->hasClient('unExistingClientName'), 'Not existing client check fails!');
 }