Example #1
0
 public function testClient()
 {
     $clientId = trim(readline("Please type GUS client ID: "));
     $dbcUser = trim(readline("Please type DeathByCaptcha username: "******"Please type DeathByCaptcha password: "));
     $client = new GusClient\Client($clientId, $dbcUser, $dbcPassword, 'TEST', array(), true);
     $onet = $client->findByNip(self::$data->Onet->nip);
     $this->assertEquals(self::$data->Onet->name, $onet->name);
     $interia = $client->findByNip(self::$data->Interia->nip);
     $this->assertEquals(self::$data->Interia->name, $interia->name);
     $both = $client->findByNip(array(self::$data->Interia->nip, self::$data->Onet->nip));
     $this->assertEquals(2, count($both));
 }