trim credentials

Cette révision appartient à :
Daniel Seifert 2025-01-09 10:40:13 +01:00
Parent 5724a50ba2
révision e203b5126f
2 fichiers modifiés avec 5 ajouts et 5 suppressions

Voir le fichier

@ -57,8 +57,8 @@ class Connection
->notBlank() ->notBlank()
->verifyNow(); ->verifyNow();
$this->client_key = $client_key; $this->client_key = trim($client_key);
$this->secret_key = $secret_key; $this->secret_key = trim($secret_key);
$this->cookies_jar = new CookieJar(); $this->cookies_jar = new CookieJar();
} }

Voir le fichier

@ -56,11 +56,11 @@ class ConnectionTest extends TestCase
$sut = new Connection($userName, $password); $sut = new Connection($userName, $password);
$this->assertSame( $this->assertSame(
$userName, trim($userName),
$sut->getClientKey() $sut->getClientKey()
); );
$this->assertSame( $this->assertSame(
$password, trim($password),
$sut->getSecretKey() $sut->getSecretKey()
); );
$this->assertInstanceOf( $this->assertInstanceOf(