From df428380e288db75b41ace5d6274f44916517f9f Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 21 Feb 2022 21:28:49 +0100 Subject: Fix whitespace --- tests/Test.php | 205 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 102 insertions(+), 103 deletions(-) (limited to 'tests/Test.php') diff --git a/tests/Test.php b/tests/Test.php index 0543c1f..2888d81 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -27,118 +27,118 @@ class Test extends TestCase # root config file_put_contents($contentRoot . '/config/config.toml', <<request('POST', 'customername/pagedform/submit?key=' . $this->apiKey, [ 'form_params' => [ - 'name' => 'NAME', - 'email' => 'EMAIL', - 'date' => 'DATE', - 'text' => '123', - 'manythings' => 'second', - 'multiplethings' => [ - 'thing-1', 'thing-3', - ], + 'name' => 'NAME', + 'email' => 'EMAIL', + 'date' => 'DATE', + 'text' => '123', + 'manythings' => 'second', + 'multiplethings' => [ + 'thing-1', 'thing-3', + ], ], ]); $body = json_decode((string)$response->getBody(), true); @@ -245,9 +245,9 @@ class Test extends TestCase // invalid response $response = $this->request('POST', 'customername/pagedform/submit?key=' . $this->apiKey, [ 'form_params' => [ - 'name' => 'NAME', - 'date' => 'DATE', - 'text' => 'einszweidrei', + 'name' => 'NAME', + 'date' => 'DATE', + 'text' => 'einszweidrei', ], ]); $body = json_decode((string)$response->getBody(), true); @@ -260,8 +260,8 @@ class Test extends TestCase // valid response "one" page $response = $this->request('POST', 'customername/pagedform/validate?page=one&key=' . $this->apiKey, [ 'form_params' => [ - 'name' => 'NAME', - 'email' => 'EMAIL', + 'name' => 'NAME', + 'email' => 'EMAIL', ], ]); $body = json_decode((string)$response->getBody(), true); @@ -275,8 +275,8 @@ class Test extends TestCase // valid response "second" page $response = $this->request('POST', 'customername/pagedform/validate?page=second&key=' . $this->apiKey, [ 'form_params' => [ - 'date' => 'DATE', - 'text' => '123', + 'date' => 'DATE', + 'text' => '123', ], ]); $body = json_decode((string)$response->getBody(), true); @@ -290,9 +290,9 @@ class Test extends TestCase // valid response validation_function $response = $this->request('POST', 'customername/formname/submit?key=' . $this->apiKey, [ 'form_params' => [ - 'name' => 'Harry', - 'email' => 'EMAIL', - 'date' => 'DATE', + 'name' => 'Harry', + 'email' => 'EMAIL', + 'date' => 'DATE', ], ]); $body = json_decode((string)$response->getBody(), true); @@ -305,9 +305,9 @@ class Test extends TestCase // invalid response validation_function $response = $this->request('POST', 'customername/formname/submit?key=' . $this->apiKey, [ 'form_params' => [ - 'name' => 'NAME', - 'email' => 'EMAIL', - 'date' => 'DATE', + 'name' => 'NAME', + 'email' => 'EMAIL', + 'date' => 'DATE', ], ]); $body = json_decode((string)$response->getBody(), true); @@ -318,4 +318,3 @@ class Test extends TestCase $this->assertEquals(true, $body['date']['is_valid']); } } - -- cgit v1.2.3