Completed
Push — master ( a6fe0f...b0c0c1 )
by Sebastian
02:05
created
src/DjThossi/SmokeTestingPhp/SmokeTestTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     protected function assertSuccess(Result $result)
63 63
     {
64
-        $errorMessage = "This SmokeTest was not successful\n" . $result->asString();
64
+        $errorMessage = "This SmokeTest was not successful\n".$result->asString();
65 65
 
66 66
         Assert::assertTrue($result->isValidResult(), $errorMessage);
67 67
         Assert::assertSame(200, $result->getStatusCode()->asInteger(), $errorMessage);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     protected function assertTimeToFirstByteBelow(TimeToFirstByte $maxTimeToFirstByte, Result $result)
75 75
     {
76
-        $errorMessage = "This SmokeTest was to slow\n" . $result->asString();
76
+        $errorMessage = "This SmokeTest was to slow\n".$result->asString();
77 77
 
78 78
         Assert::assertLessThanOrEqual(
79 79
             $maxTimeToFirstByte->inMilliSeconds(),
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     protected function assertBodyNotEmpty(Result $result)
89 89
     {
90
-        $errorMessage = "The body of this SmokeTest is empty\n" . $result->asString();
90
+        $errorMessage = "The body of this SmokeTest is empty\n".$result->asString();
91 91
 
92 92
         Assert::assertNotEmpty($result->getBody()->asString(), $errorMessage);
93 93
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function assertHeaderKeyExists(HeaderKey $key, Result $result)
100 100
     {
101
-        $errorMessage = "HeaderKey not found in this SmokeTest\n" . $result->asString();
101
+        $errorMessage = "HeaderKey not found in this SmokeTest\n".$result->asString();
102 102
 
103 103
         Assert::assertGreaterThan(0, $result->getHeaders()->count(), $errorMessage);
104 104
         Assert::assertTrue($result->getHeaders()->headerKeyExists($key), $errorMessage);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function assertHeaderExists(Header $searchHeader, Result $result)
112 112
     {
113
-        $errorMessage = "Header not found in this SmokeTest\n" . $result->asString();
113
+        $errorMessage = "Header not found in this SmokeTest\n".$result->asString();
114 114
 
115 115
         Assert::assertGreaterThan(0, $result->getHeaders()->count(), $errorMessage);
116 116
         Assert::assertTrue($result->getHeaders()->headerExists($searchHeader), $errorMessage);
Please login to merge, or discard this patch.