This commit is contained in:
Arthur Schiwon 2016-08-22 16:56:00 +02:00
parent b13092065a
commit 5cd3f4e4dc
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -122,4 +122,20 @@ class LoggerTest extends TestCase {
$this->assertContains('validateUserPass(*** sensitive parameters replaced ***)', $logLine);
}
}
/**
* @dataProvider userAndPasswordData
*/
public function testDetecttryLogin($user, $password) {
$e = new \Exception('test');
$this->logger->logException($e);
$logLines = $this->getLogs();
foreach($logLines as $logLine) {
$this->assertNotContains($user, $logLine);
$this->assertNotContains($password, $logLine);
$this->assertContains('tryLogin(*** sensitive parameters replaced ***)', $logLine);
}
}
}