Skip to content
Snippets Groups Projects
Commit 45fa3a64 authored by lukasmatusiewicz's avatar lukasmatusiewicz
Browse files

formatting

parent 9e966ad7
No related branches found
No related tags found
No related merge requests found
<?php
abstract class AuthenticationStatus
{
const CHALLENGE = "CHALLENGE";
......
......@@ -3,4 +3,5 @@
//namespace PrivacyIdea\PHPClient;
class PIBadRequestException extends Exception
{}
{
}
......@@ -368,7 +368,7 @@ class PrivacyIDEA
* @param $httpMethod string GET or POST
* @param $endpoint string endpoint of the privacyIDEA API (e.g. /validate/check)
* @return string returns a string with the response from server
* @throws PIBadRequestException if an error occurres
* @throws PIBadRequestException if an error occurs
*/
public function sendRequest(array $params, array $headers, $httpMethod, $endpoint)
{
......
......@@ -57,10 +57,10 @@ class EnrollTokenTest extends TestCase implements PILog
->when()
->methodIs('POST')
->headerIs("Authorization", Utils::authToken())
->pathIs('/token/init')
->then()
->body(Utils::tokenInitResponseBody())
->end();
->pathIs('/token/init')
->then()
->body(Utils::tokenInitResponseBody())
->end();
$this->http->setUp();
$this->pi->serviceAccountName = "TestServiceAccount";
......@@ -86,9 +86,9 @@ class EnrollTokenTest extends TestCase implements PILog
{
$response = $this->pi->enrollToken(
"testUser",
"1",
"totp",
"Enrolled for test");
"1",
"totp",
"Enrolled for test");
$this->assertNull($response);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment