@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | case self::INSTRUCTION_WAIT_FOR_NOT_EXISTS: |
87 | 87 | $this->webdriver->wait()->until( |
88 | 88 | ExpectedCondition::not( |
89 | - ExpectedCondition::elementExists( $xpath, WebDriver::BY_XPATH) |
|
89 | + ExpectedCondition::elementExists($xpath, WebDriver::BY_XPATH) |
|
90 | 90 | ) |
91 | 91 | ); |
92 | 92 | break; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | ); |
106 | 106 | break; |
107 | 107 | default: |
108 | - throw new InvalidConfigurationException('Unknown login instruction: ' .$instruction ); |
|
108 | + throw new InvalidConfigurationException('Unknown login instruction: ' . $instruction); |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 |
@@ -33,21 +33,21 @@ discard block |
||
33 | 33 | $api->setEnabled(true); // Gotta force this for this test |
34 | 34 | |
35 | 35 | $output->writeln('Sending un-authenticated payload...'); |
36 | - $client = new Client('http://' . $api->getApiHostname(). '/api/ping'); |
|
36 | + $client = new Client('http://' . $api->getApiHostname() . '/api/ping'); |
|
37 | 37 | $request = $client->get(); |
38 | 38 | $response = $request->send(); |
39 | 39 | $output->writeln( |
40 | 40 | 'Checking for 200 status message... ' |
41 | - . ($response->getStatusCode() == '200'?'OK':'Failed') |
|
41 | + . ($response->getStatusCode() == '200' ? 'OK' : 'Failed') |
|
42 | 42 | ); |
43 | 43 | $output->writeln( |
44 | 44 | 'Checking for application/json content type... ' |
45 | - . (stripos($response->getContentType(), 'application/json') !== false?'OK':'Failed') |
|
45 | + . (stripos($response->getContentType(), 'application/json') !== false ? 'OK' : 'Failed') |
|
46 | 46 | ); |
47 | 47 | $content = json_decode($response->getBody(), true); |
48 | 48 | $output->writeln( |
49 | 49 | 'Checking for successful response... ' |
50 | - . (is_array($content) && isset($content['status']) && $content['status'] === 'success'?'OK':'Failed') |
|
50 | + . (is_array($content) && isset($content['status']) && $content['status'] === 'success' ? 'OK' : 'Failed') |
|
51 | 51 | ); |
52 | 52 | |
53 | 53 | $output->writeln(''); |
@@ -59,16 +59,16 @@ discard block |
||
59 | 59 | |
60 | 60 | $output->writeln( |
61 | 61 | 'Checking for 200 status message... ' |
62 | - . ($response->getStatusCode() == '200'?'OK':'Failed') |
|
62 | + . ($response->getStatusCode() == '200' ? 'OK' : 'Failed') |
|
63 | 63 | ); |
64 | 64 | $output->writeln( |
65 | 65 | 'Checking for application/json content type... ' |
66 | - . (stripos($response->getContentType(), 'application/json') !== false?'OK':'Failed') |
|
66 | + . (stripos($response->getContentType(), 'application/json') !== false ? 'OK' : 'Failed') |
|
67 | 67 | ); |
68 | 68 | $content = $request->getPayload($response); |
69 | 69 | $output->writeln( |
70 | 70 | 'Checking for successful response... ' |
71 | - . (is_array($content) && isset($content['status']) && $content['status'] === 'success'?'OK':'Failed') |
|
71 | + . (is_array($content) && isset($content['status']) && $content['status'] === 'success' ? 'OK' : 'Failed') |
|
72 | 72 | ); |
73 | 73 | |
74 | 74 | |
@@ -79,20 +79,20 @@ discard block |
||
79 | 79 | $response = $request->push('/api/echo-authed', ['message' => 'hello world']); |
80 | 80 | $output->writeln( |
81 | 81 | 'Checking for 200 status message... ' |
82 | - . ($response->getStatusCode() == '200'?'OK':'Failed') |
|
82 | + . ($response->getStatusCode() == '200' ? 'OK' : 'Failed') |
|
83 | 83 | ); |
84 | 84 | $output->writeln( |
85 | 85 | 'Checking for application/json content type... ' |
86 | - . (stripos($response->getContentType(), 'application/json') !== false?'OK':'Failed') |
|
86 | + . (stripos($response->getContentType(), 'application/json') !== false ? 'OK' : 'Failed') |
|
87 | 87 | ); |
88 | 88 | $content = $request->getPayload($response); |
89 | 89 | $output->writeln( |
90 | 90 | 'Checking for successful response... ' |
91 | - . (is_array($content) && isset($content['status']) && $content['status'] === 'success'?'OK':'Failed') |
|
91 | + . (is_array($content) && isset($content['status']) && $content['status'] === 'success' ? 'OK' : 'Failed') |
|
92 | 92 | ); |
93 | 93 | $output->writeln( |
94 | 94 | 'Checking for matching echo message... ' |
95 | - . (is_array($content) && isset($content['message']) && $content['message'] === 'hello world'?'OK':'Failed') |
|
95 | + . (is_array($content) && isset($content['message']) && $content['message'] === 'hello world' ? 'OK' : 'Failed') |
|
96 | 96 | ); |
97 | 97 | } |
98 | 98 |