trim credentials
Cette révision appartient à :
Parent
5724a50ba2
révision
e203b5126f
@ -57,8 +57,8 @@ class Connection
|
||||
->notBlank()
|
||||
->verifyNow();
|
||||
|
||||
$this->client_key = $client_key;
|
||||
$this->secret_key = $secret_key;
|
||||
$this->client_key = trim($client_key);
|
||||
$this->secret_key = trim($secret_key);
|
||||
$this->cookies_jar = new CookieJar();
|
||||
}
|
||||
|
||||
|
@ -56,11 +56,11 @@ class ConnectionTest extends TestCase
|
||||
$sut = new Connection($userName, $password);
|
||||
|
||||
$this->assertSame(
|
||||
$userName,
|
||||
trim($userName),
|
||||
$sut->getClientKey()
|
||||
);
|
||||
$this->assertSame(
|
||||
$password,
|
||||
trim($password),
|
||||
$sut->getSecretKey()
|
||||
);
|
||||
$this->assertInstanceOf(
|
||||
|
Chargement…
x
Référencer dans un nouveau ticket
Bloquer un utilisateur