@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | public function isReadable() { |
| 22 | 22 | $this->isExist(); |
| 23 | 23 | $this->startStep('is readable') |
| 24 | - ->assertIsReadable(); |
|
| 24 | + ->assertIsReadable(); |
|
| 25 | 25 | |
| 26 | 26 | return $this; |
| 27 | 27 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | public function isNotReadable() { |
| 33 | 33 | $this->isExist(); |
| 34 | 34 | $this->startStep('is not readable') |
| 35 | - ->assertNotIsReadable(); |
|
| 35 | + ->assertNotIsReadable(); |
|
| 36 | 36 | |
| 37 | 37 | return $this; |
| 38 | 38 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | public function isWritable() { |
| 44 | 44 | $this->isExist(); |
| 45 | 45 | $this->startStep('is writable') |
| 46 | - ->assertIsWritable(); |
|
| 46 | + ->assertIsWritable(); |
|
| 47 | 47 | |
| 48 | 48 | return $this; |
| 49 | 49 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | public function isNotWritable() { |
| 55 | 55 | $this->isExist(); |
| 56 | 56 | $this->startStep('is not writable') |
| 57 | - ->assertNotIsWritable(); |
|
| 57 | + ->assertNotIsWritable(); |
|
| 58 | 58 | |
| 59 | 59 | return $this; |
| 60 | 60 | } |
@@ -18,21 +18,21 @@ discard block |
||
| 18 | 18 | public $exceptionClassOrObject; |
| 19 | 19 | public function withMessage($message) { |
| 20 | 20 | $this->startStep('has message "' . $message . '"') |
| 21 | - ->expectExceptionMessage($message); |
|
| 21 | + ->expectExceptionMessage($message); |
|
| 22 | 22 | |
| 23 | 23 | return $this; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function withMessageMatchesPattern($messagePattern) { |
| 27 | 27 | $this->startStep('has message matching pattern "' . $messagePattern . '"') |
| 28 | - ->expectExceptionMessageRegExp($messagePattern); |
|
| 28 | + ->expectExceptionMessageRegExp($messagePattern); |
|
| 29 | 29 | |
| 30 | 30 | return $this; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function withCode($code) { |
| 34 | 34 | $this->startStep('has code "' . $code . '"') |
| 35 | - ->expectExceptionCode($code); |
|
| 35 | + ->expectExceptionCode($code); |
|
| 36 | 36 | |
| 37 | 37 | return $this; |
| 38 | 38 | } |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | $exceptionClassOrObject = $this->exceptionClassOrObject; |
| 53 | 53 | if (is_string($exceptionClassOrObject)) { |
| 54 | 54 | $this->startStep('throws exception "' . $exceptionClassOrObject . '"') |
| 55 | - ->expectException($this->exceptionClassOrObject); |
|
| 55 | + ->expectException($this->exceptionClassOrObject); |
|
| 56 | 56 | } else { |
| 57 | 57 | $this->startStep('throws exception "' . get_class($exceptionClassOrObject) . '"') |
| 58 | - ->expectExceptionObject($this->exceptionClassOrObject); |
|
| 58 | + ->expectExceptionObject($this->exceptionClassOrObject); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | call_user_func_array($callback, [$this->getActualValue()]); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | public function isInstanceOf($class): self { |
| 19 | 19 | $this->startStep('is instance of "' . $class . '"') |
| 20 | - ->assertInstanceOf($class); |
|
| 20 | + ->assertInstanceOf($class); |
|
| 21 | 21 | |
| 22 | 22 | return $this; |
| 23 | 23 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function isNotInstanceOf($class): self { |
| 29 | 29 | $this->startStep('is not instance of "' . $class . '"') |
| 30 | - ->assertNotInstanceOf($class); |
|
| 30 | + ->assertNotInstanceOf($class); |
|
| 31 | 31 | |
| 32 | 32 | return $this; |
| 33 | 33 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | public function isEqualToXmlStructure($expectedElement): self { |
| 42 | 42 | $this->isInstanceOf(DOMElement::class); |
| 43 | 43 | $this->startStep('is equal to expected DOMElement') |
| 44 | - ->assertEqualXMLStructure($expectedElement, false); |
|
| 44 | + ->assertEqualXMLStructure($expectedElement, false); |
|
| 45 | 45 | |
| 46 | 46 | return $this; |
| 47 | 47 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function isEqualToXmlStructureAndItsAttributes($expectedElement): self { |
| 60 | 60 | $this->isInstanceOf(DOMElement::class); |
| 61 | 61 | $this->startStep('is equal to xml structure and it\'s attributes in DOMElement') |
| 62 | - ->assertEqualXMLStructure($expectedElement, true); |
|
| 62 | + ->assertEqualXMLStructure($expectedElement, true); |
|
| 63 | 63 | |
| 64 | 64 | return $this; |
| 65 | 65 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function hasAttribute($attribute): self { |
| 71 | 71 | $this->startStep('has attribute "' . $attribute . '"') |
| 72 | - ->assertObjectHasAttribute($attribute); |
|
| 72 | + ->assertObjectHasAttribute($attribute); |
|
| 73 | 73 | |
| 74 | 74 | return $this; |
| 75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function doesNotHaveAttribute($attribute): self { |
| 81 | 81 | $this->startStep('does not have attribute "' . $attribute . '"') |
| 82 | - ->assertObjectNotHasAttribute($attribute); |
|
| 82 | + ->assertObjectNotHasAttribute($attribute); |
|
| 83 | 83 | |
| 84 | 84 | return $this; |
| 85 | 85 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function isExist(): self { |
| 21 | 21 | $this->startStep('is exist') |
| 22 | - ->assertFileExists(); |
|
| 22 | + ->assertFileExists(); |
|
| 23 | 23 | |
| 24 | 24 | return $this; |
| 25 | 25 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function isNotExist(): self { |
| 31 | 31 | $this->startStep('is not exist') |
| 32 | - ->assertFileNotExists(); |
|
| 32 | + ->assertFileNotExists(); |
|
| 33 | 33 | |
| 34 | 34 | return $this; |
| 35 | 35 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function isEqualTo($file): self { |
| 41 | 41 | $this->startStep('is equal to file "' . $file . '"') |
| 42 | - ->assertFileEquals($file); |
|
| 42 | + ->assertFileEquals($file); |
|
| 43 | 43 | |
| 44 | 44 | return $this; |
| 45 | 45 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function isNotEqualTo($file): self { |
| 51 | 51 | $this->startStep('is not equal to file "' . $file . '"') |
| 52 | - ->assertFileNotEquals($file); |
|
| 52 | + ->assertFileNotEquals($file); |
|
| 53 | 53 | |
| 54 | 54 | return $this; |
| 55 | 55 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function isEqualToJsonFile($file): self { |
| 61 | 61 | $this->startStep('is equal to json file "' . $file . '"') |
| 62 | - ->assertJsonFileEqualsJsonFile($file); |
|
| 62 | + ->assertJsonFileEqualsJsonFile($file); |
|
| 63 | 63 | |
| 64 | 64 | return $this; |
| 65 | 65 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function isNotEqualToJsonFile($file): self { |
| 71 | 71 | $this->startStep('is not equal to json file "' . $file . '"') |
| 72 | - ->assertJsonFileNotEqualsJsonFile($file); |
|
| 72 | + ->assertJsonFileNotEqualsJsonFile($file); |
|
| 73 | 73 | |
| 74 | 74 | return $this; |
| 75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function isEqualToXmlFile($file): self { |
| 81 | 81 | $this->startStep('is equal to xml file "' . $file . '"') |
| 82 | - ->assertXmlFileEqualsXmlFile($file); |
|
| 82 | + ->assertXmlFileEqualsXmlFile($file); |
|
| 83 | 83 | |
| 84 | 84 | return $this; |
| 85 | 85 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public function isNotEqualToXmlFile($file): self { |
| 91 | 91 | $this->startStep('is not equal to xml file "' . $file . '"') |
| 92 | - ->assertXmlFileNotEqualsXmlFile($file); |
|
| 92 | + ->assertXmlFileNotEqualsXmlFile($file); |
|
| 93 | 93 | |
| 94 | 94 | return $this; |
| 95 | 95 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public function isJson(): self { |
| 16 | 16 | $this->startStep('is JSON') |
| 17 | - ->assertJson(); |
|
| 17 | + ->assertJson(); |
|
| 18 | 18 | |
| 19 | 19 | return $this; |
| 20 | 20 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function isEqualToJsonFile($file): self { |
| 26 | 26 | $this->startStep('is equal to JSON file "' . $file . '"') |
| 27 | - ->assertJsonStringEqualsJsonFile($file); |
|
| 27 | + ->assertJsonStringEqualsJsonFile($file); |
|
| 28 | 28 | |
| 29 | 29 | return $this; |
| 30 | 30 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function isNotEqualToJsonFile($file): self { |
| 36 | 36 | $this->startStep('is not equal to JSON file "' . $file . '"') |
| 37 | - ->assertJsonStringNotEqualsJsonFile($file); |
|
| 37 | + ->assertJsonStringNotEqualsJsonFile($file); |
|
| 38 | 38 | |
| 39 | 39 | return $this; |
| 40 | 40 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function isEqualToJsonString($string): self { |
| 46 | 46 | $this->startStep('is equal to JSON string "' . $string . '"') |
| 47 | - ->assertJsonStringEqualsJsonString($string); |
|
| 47 | + ->assertJsonStringEqualsJsonString($string); |
|
| 48 | 48 | |
| 49 | 49 | return $this; |
| 50 | 50 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function isNotEqualToJsonString($string): self { |
| 56 | 56 | $this->startStep('is not equal to JSON string "' . $string . '"') |
| 57 | - ->assertJsonStringNotEqualsJsonString($string); |
|
| 57 | + ->assertJsonStringNotEqualsJsonString($string); |
|
| 58 | 58 | |
| 59 | 59 | return $this; |
| 60 | 60 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function isEqualToFile($file): self { |
| 66 | 66 | $this->startStep('is equal to file "' . $file . '"') |
| 67 | - ->assertStringEqualsFile($file); |
|
| 67 | + ->assertStringEqualsFile($file); |
|
| 68 | 68 | |
| 69 | 69 | return $this; |
| 70 | 70 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function isNotEqualToFile($file): self { |
| 76 | 76 | $this->startStep('is not equal to file "' . $file . '"') |
| 77 | - ->assertStringNotEqualsFile($file); |
|
| 77 | + ->assertStringNotEqualsFile($file); |
|
| 78 | 78 | |
| 79 | 79 | return $this; |
| 80 | 80 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function isEqualToXmlFile($file): self { |
| 86 | 86 | $this->startStep('is equal to XML file "' . $file . '"') |
| 87 | - ->assertXmlStringEqualsXmlFile($file); |
|
| 87 | + ->assertXmlStringEqualsXmlFile($file); |
|
| 88 | 88 | |
| 89 | 89 | return $this; |
| 90 | 90 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function isNotEqualToXmlFile($file): self { |
| 96 | 96 | $this->startStep('is not equal to XML file "' . $file . '"') |
| 97 | - ->assertXmlStringNotEqualsXmlFile($file); |
|
| 97 | + ->assertXmlStringNotEqualsXmlFile($file); |
|
| 98 | 98 | |
| 99 | 99 | return $this; |
| 100 | 100 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function isEqualToXmlString($xmlString): self { |
| 106 | 106 | $this->startStep('is equal to XML string "' . $xmlString . '"') |
| 107 | - ->assertXmlStringEqualsXmlString($xmlString); |
|
| 107 | + ->assertXmlStringEqualsXmlString($xmlString); |
|
| 108 | 108 | |
| 109 | 109 | return $this; |
| 110 | 110 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public function isNotEqualToXmlString($xmlString): self { |
| 116 | 116 | $this->startStep('is not equal to XML string "' . $xmlString . '"') |
| 117 | - ->assertXmlStringNotEqualsXmlString($xmlString); |
|
| 117 | + ->assertXmlStringNotEqualsXmlString($xmlString); |
|
| 118 | 118 | |
| 119 | 119 | return $this; |
| 120 | 120 | } |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | public function startsWith($prefix): self { |
| 126 | 126 | $this->startStep('starts with "' . $prefix . '"') |
| 127 | - ->assertStringStartsWith($prefix); |
|
| 127 | + ->assertStringStartsWith($prefix); |
|
| 128 | 128 | |
| 129 | 129 | return $this; |
| 130 | 130 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | public function doesNotStartWith($prefix): self { |
| 136 | 136 | $this->startStep('does not start with "' . $prefix . '"') |
| 137 | - ->assertStringStartsNotWith($prefix); |
|
| 137 | + ->assertStringStartsNotWith($prefix); |
|
| 138 | 138 | |
| 139 | 139 | return $this; |
| 140 | 140 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | public function endsWith($suffix): self { |
| 146 | 146 | $this->startStep('ends with "' . $suffix . '"') |
| 147 | - ->assertStringEndsWith($suffix); |
|
| 147 | + ->assertStringEndsWith($suffix); |
|
| 148 | 148 | |
| 149 | 149 | return $this; |
| 150 | 150 | } |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function doesNotEndWith($suffix): self { |
| 156 | 156 | $this->startStep('does not end with "' . $suffix . '"') |
| 157 | - ->assertStringEndsNotWith($suffix); |
|
| 157 | + ->assertStringEndsNotWith($suffix); |
|
| 158 | 158 | |
| 159 | 159 | return $this; |
| 160 | 160 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | */ |
| 165 | 165 | public function matchesRegExp($expression): self { |
| 166 | 166 | $this->startStep('matches regular expression "' . $expression . '"') |
| 167 | - ->assertRegExp($expression); |
|
| 167 | + ->assertRegExp($expression); |
|
| 168 | 168 | |
| 169 | 169 | return $this; |
| 170 | 170 | } |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | */ |
| 175 | 175 | public function matchesFormat($format): self { |
| 176 | 176 | $this->startStep('matches format "' . $format . '"') |
| 177 | - ->assertStringMatchesFormat($format); |
|
| 177 | + ->assertStringMatchesFormat($format); |
|
| 178 | 178 | |
| 179 | 179 | return $this; |
| 180 | 180 | } |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | */ |
| 185 | 185 | public function doesNotMatchFormat($format): self { |
| 186 | 186 | $this->startStep('does not match format "' . $format . '"') |
| 187 | - ->assertStringNotMatchesFormat($format); |
|
| 187 | + ->assertStringNotMatchesFormat($format); |
|
| 188 | 188 | |
| 189 | 189 | return $this; |
| 190 | 190 | } |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | public function matchesFormatFromFile($formatFile): self { |
| 196 | 196 | $this->startStep('matches format from file "' . $formatFile . '"') |
| 197 | - ->assertStringMatchesFormatFile($formatFile); |
|
| 197 | + ->assertStringMatchesFormatFile($formatFile); |
|
| 198 | 198 | |
| 199 | 199 | return $this; |
| 200 | 200 | } |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | public function doesNotMatchFormatFromFile($formatFile): self { |
| 206 | 206 | $this->startStep('does not match format from file "' . $formatFile . '"') |
| 207 | - ->assertStringNotMatchesFormatFile($formatFile); |
|
| 207 | + ->assertStringNotMatchesFormatFile($formatFile); |
|
| 208 | 208 | |
| 209 | 209 | return $this; |
| 210 | 210 | } |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | */ |
| 215 | 215 | public function contains($needle): self { |
| 216 | 216 | $this->startStep('contains "' . $needle . '"') |
| 217 | - ->assertContains($needle); |
|
| 217 | + ->assertContains($needle); |
|
| 218 | 218 | |
| 219 | 219 | return $this; |
| 220 | 220 | } |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | */ |
| 225 | 225 | public function doesNotContain($needle): self { |
| 226 | 226 | $this->startStep('does not contain "' . $needle . '"') |
| 227 | - ->assertNotContains($needle); |
|
| 227 | + ->assertNotContains($needle); |
|
| 228 | 228 | |
| 229 | 229 | return $this; |
| 230 | 230 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public function hasKey($key) { |
| 16 | 16 | $this->startStep('has key "' . $key . '"') |
| 17 | - ->assertArrayHasKey($key); |
|
| 17 | + ->assertArrayHasKey($key); |
|
| 18 | 18 | |
| 19 | 19 | return $this; |
| 20 | 20 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function doesNotHaveKey($key) { |
| 29 | 29 | $this->startStep('does not have key "' . $key . '"') |
| 30 | - ->assertArrayNotHasKey($key); |
|
| 30 | + ->assertArrayNotHasKey($key); |
|
| 31 | 31 | |
| 32 | 32 | return $this; |
| 33 | 33 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | public function hasSubset($subset, $subsetName = '') { |
| 39 | 39 | $stepName = $subsetName ? "has subset \"{$subsetName}\"" : 'has expected subset'; |
| 40 | 40 | $this->startStep($stepName) |
| 41 | - ->assertArraySubset($subset, false); |
|
| 41 | + ->assertArraySubset($subset, false); |
|
| 42 | 42 | |
| 43 | 43 | return $this; |
| 44 | 44 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $stepName = $subsetName ? "has exactly the same subset \"{$subsetName}\"" : 'has exactly the same expected subset'; |
| 58 | 58 | |
| 59 | 59 | $this->startStep($stepName) |
| 60 | - ->assertArraySubset($subset, true); |
|
| 60 | + ->assertArraySubset($subset, true); |
|
| 61 | 61 | |
| 62 | 62 | return $this; |
| 63 | 63 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $stepName = $expectedValueName ? "has same size as {$expectedValueName}" : "has same size as expected"; |
| 70 | 70 | |
| 71 | 71 | $this->startStep($stepName) |
| 72 | - ->assertSameSize($expected); |
|
| 72 | + ->assertSameSize($expected); |
|
| 73 | 73 | |
| 74 | 74 | return $this; |
| 75 | 75 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $stepName = $expectedValueName ? "does not have same size as {$expectedValueName}" : "does not have same size as expected"; |
| 82 | 82 | |
| 83 | 83 | $this->startStep($stepName) |
| 84 | - ->assertNotSameSize($expected); |
|
| 84 | + ->assertNotSameSize($expected); |
|
| 85 | 85 | |
| 86 | 86 | return $this; |
| 87 | 87 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $stepName = $needleName ? "contains {$needleName}" : "contains expected needle"; |
| 94 | 94 | |
| 95 | 95 | $this->startStep($stepName) |
| 96 | - ->assertContains($needle); |
|
| 96 | + ->assertContains($needle); |
|
| 97 | 97 | |
| 98 | 98 | return $this; |
| 99 | 99 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $stepName = $needleName ? "does not contain {$needleName}" : "does not contain expected needle"; |
| 106 | 106 | |
| 107 | 107 | $this->startStep($stepName) |
| 108 | - ->assertNotContains($needle); |
|
| 108 | + ->assertNotContains($needle); |
|
| 109 | 109 | |
| 110 | 110 | return $this; |
| 111 | 111 | } |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | public function containsOnlyValuesOfType($type) { |
| 117 | 117 | $this->startStep('contains only values of type "' . $type . '"') |
| 118 | - ->assertContainsOnly($type); |
|
| 118 | + ->assertContainsOnly($type); |
|
| 119 | 119 | |
| 120 | 120 | return $this; |
| 121 | 121 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public function containsOnlyValuesOfNativeType($type) { |
| 127 | 127 | $this->startStep('contains only values of native type "' . $type . '"') |
| 128 | - ->assertContainsOnly($type, true); |
|
| 128 | + ->assertContainsOnly($type, true); |
|
| 129 | 129 | |
| 130 | 130 | return $this; |
| 131 | 131 | } |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | public function containsOnlyInstancesOf($class) { |
| 137 | 137 | $this->startStep('contains only instances of "' . $class . '"') |
| 138 | - ->assertContainsOnlyInstancesOf($class); |
|
| 138 | + ->assertContainsOnlyInstancesOf($class); |
|
| 139 | 139 | |
| 140 | 140 | return $this; |
| 141 | 141 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | */ |
| 146 | 146 | public function doesNotContainOnlyValuesOfType($type) { |
| 147 | 147 | $this->startStep('does not contain only values of type "' . $type . '"') |
| 148 | - ->assertNotContainsOnly($type, null); |
|
| 148 | + ->assertNotContainsOnly($type, null); |
|
| 149 | 149 | |
| 150 | 150 | return $this; |
| 151 | 151 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | public function doesNotContainOnlyValuesOfNativeType($type) { |
| 157 | 157 | $this->startStep('does not contain only values of native type "' . $type . '"') |
| 158 | - ->assertNotContainsOnly($type, true); |
|
| 158 | + ->assertNotContainsOnly($type, true); |
|
| 159 | 159 | |
| 160 | 160 | return $this; |
| 161 | 161 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $stepName = $expectedValueName ? "has count equal to count of {$expectedValueName}" : "has count equal to count of expected"; |
| 168 | 168 | |
| 169 | 169 | $this->startStep($stepName) |
| 170 | - ->assertCount($this->convertToCount($countOrCountable)); |
|
| 170 | + ->assertCount($this->convertToCount($countOrCountable)); |
|
| 171 | 171 | |
| 172 | 172 | return $this; |
| 173 | 173 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $stepName = $expectedValueName ? "does not have count equal count of {$expectedValueName}" : "does not have count equal count of expected"; |
| 180 | 180 | |
| 181 | 181 | $this->startStep($stepName) |
| 182 | - ->assertNotCount($this->convertToCount($countOrCountable)); |
|
| 182 | + ->assertNotCount($this->convertToCount($countOrCountable)); |
|
| 183 | 183 | |
| 184 | 184 | return $this; |
| 185 | 185 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public function isInternalType($type): self { |
| 18 | 18 | $this->startStep('is internal type "' . $type . '"') |
| 19 | - ->assertInternalType($type); |
|
| 19 | + ->assertInternalType($type); |
|
| 20 | 20 | |
| 21 | 21 | return $this; |
| 22 | 22 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function isNotInternalType($type): self { |
| 28 | 28 | $this->startStep('is not internal type "' . $type . '"') |
| 29 | - ->assertNotInternalType($type); |
|
| 29 | + ->assertNotInternalType($type); |
|
| 30 | 30 | |
| 31 | 31 | return $this; |
| 32 | 32 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $stepName = $expectedValueName ? "is equal to {$expectedValueName}" : "is equal to expected"; |
| 39 | 39 | |
| 40 | 40 | $this->startStep($stepName) |
| 41 | - ->assertEquals($expected); |
|
| 41 | + ->assertEquals($expected); |
|
| 42 | 42 | |
| 43 | 43 | return $this; |
| 44 | 44 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | public function isNotEqualTo($expected, $expectedValueName = '') { |
| 50 | 50 | $stepName = $expectedValueName ? "is not equal to {$expectedValueName}" : "is not equal to expected"; |
| 51 | 51 | $this->startStep($stepName) |
| 52 | - ->assertNotEquals($expected); |
|
| 52 | + ->assertNotEquals($expected); |
|
| 53 | 53 | |
| 54 | 54 | return $this; |
| 55 | 55 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function isGreaterThan($expected): self { |
| 61 | 61 | $this->startStep('is greater than "' . $expected . '"') |
| 62 | - ->assertGreaterThan($expected); |
|
| 62 | + ->assertGreaterThan($expected); |
|
| 63 | 63 | |
| 64 | 64 | return $this; |
| 65 | 65 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function isLessThan($expected): self { |
| 71 | 71 | $this->startStep('is less than "' . $expected . '"') |
| 72 | - ->assertLessThan($expected); |
|
| 72 | + ->assertLessThan($expected); |
|
| 73 | 73 | |
| 74 | 74 | return $this; |
| 75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function isGreaterOrEqualTo($expected): self { |
| 81 | 81 | $this->startStep('is greater or equal to "' . $expected . '"') |
| 82 | - ->assertGreaterThanOrEqual($expected); |
|
| 82 | + ->assertGreaterThanOrEqual($expected); |
|
| 83 | 83 | |
| 84 | 84 | return $this; |
| 85 | 85 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public function isLessOrEqualTo($expected): self { |
| 91 | 91 | $this->startStep('is less or equal to "' . $expected . '"') |
| 92 | - ->assertLessThanOrEqual($expected); |
|
| 92 | + ->assertLessThanOrEqual($expected); |
|
| 93 | 93 | |
| 94 | 94 | return $this; |
| 95 | 95 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function isNull(): self { |
| 101 | 101 | $this->startStep('is null') |
| 102 | - ->assertNull(); |
|
| 102 | + ->assertNull(); |
|
| 103 | 103 | |
| 104 | 104 | return $this; |
| 105 | 105 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function isNotNull(): self { |
| 111 | 111 | $this->startStep('is not null') |
| 112 | - ->assertNotNull(); |
|
| 112 | + ->assertNotNull(); |
|
| 113 | 113 | |
| 114 | 114 | return $this; |
| 115 | 115 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function isEmpty(): self { |
| 121 | 121 | $this->startStep('is empty') |
| 122 | - ->assertEmpty(); |
|
| 122 | + ->assertEmpty(); |
|
| 123 | 123 | |
| 124 | 124 | return $this; |
| 125 | 125 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | public function isNotEmpty(): self { |
| 131 | 131 | $this->startStep('is not empty') |
| 132 | - ->assertNotEmpty(); |
|
| 132 | + ->assertNotEmpty(); |
|
| 133 | 133 | |
| 134 | 134 | return $this; |
| 135 | 135 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | public function isTheSameAs($expected, $expectedValueName = '') { |
| 141 | 141 | $stepName = $expectedValueName ? "is the same as {$expectedValueName}" : "is the same as expected"; |
| 142 | 142 | $this->startStep($stepName) |
| 143 | - ->assertSame($expected); |
|
| 143 | + ->assertSame($expected); |
|
| 144 | 144 | |
| 145 | 145 | return $this; |
| 146 | 146 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $stepName = $expectedValueName ? "is not the same as {$expectedValueName}" : "is not the same as expected"; |
| 153 | 153 | |
| 154 | 154 | $this->startStep($stepName) |
| 155 | - ->assertNotSame($expected); |
|
| 155 | + ->assertNotSame($expected); |
|
| 156 | 156 | |
| 157 | 157 | return $this; |
| 158 | 158 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public function isTrue() { |
| 16 | 16 | $this->startStep('is true') |
| 17 | - ->assertTrue(); |
|
| 17 | + ->assertTrue(); |
|
| 18 | 18 | |
| 19 | 19 | return $this; |
| 20 | 20 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function isNotTrue() { |
| 26 | 26 | $this->startStep('is not true') |
| 27 | - ->assertNotTrue(); |
|
| 27 | + ->assertNotTrue(); |
|
| 28 | 28 | |
| 29 | 29 | return $this; |
| 30 | 30 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function isFalse() { |
| 36 | 36 | $this->startStep('is false') |
| 37 | - ->assertFalse(); |
|
| 37 | + ->assertFalse(); |
|
| 38 | 38 | |
| 39 | 39 | return $this; |
| 40 | 40 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function isNotFalse() { |
| 46 | 46 | $this->startStep('is not false') |
| 47 | - ->assertNotFalse(); |
|
| 47 | + ->assertNotFalse(); |
|
| 48 | 48 | |
| 49 | 49 | return $this; |
| 50 | 50 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public function isExist(): self { |
| 18 | 18 | $this->startStep('is exist') |
| 19 | - ->assertClassExists(); |
|
| 19 | + ->assertClassExists(); |
|
| 20 | 20 | |
| 21 | 21 | return $this; |
| 22 | 22 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function isNotExist(): self { |
| 28 | 28 | $this->startStep('is not exist') |
| 29 | - ->assertClassDoesNotExist(); |
|
| 29 | + ->assertClassDoesNotExist(); |
|
| 30 | 30 | |
| 31 | 31 | return $this; |
| 32 | 32 | } |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | public function isInterface(): self { |
| 38 | 38 | $this->startStep('is interface') |
| 39 | - ->assertClassIsInterface(); |
|
| 39 | + ->assertClassIsInterface(); |
|
| 40 | 40 | |
| 41 | 41 | return $this; |
| 42 | 42 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function isNotInterface(): self { |
| 48 | 48 | $this->startStep('is not interface') |
| 49 | - ->assertClassIsNotInterface(); |
|
| 49 | + ->assertClassIsNotInterface(); |
|
| 50 | 50 | |
| 51 | 51 | return $this; |
| 52 | 52 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function hasStaticAttribute($attribute): self { |
| 58 | 58 | $this->startStep("has static attribute \"{$attribute}\"") |
| 59 | - ->assertClassHasStaticAttribute($attribute); |
|
| 59 | + ->assertClassHasStaticAttribute($attribute); |
|
| 60 | 60 | |
| 61 | 61 | return $this; |
| 62 | 62 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function doesNotHaveStaticAttribute($attribute): self { |
| 68 | 68 | $this->startStep("does not have static attribute \"{$attribute}\"") |
| 69 | - ->assertClassNotHasStaticAttribute($attribute); |
|
| 69 | + ->assertClassNotHasStaticAttribute($attribute); |
|
| 70 | 70 | |
| 71 | 71 | return $this; |
| 72 | 72 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function hasAttribute($attribute): self { |
| 78 | 78 | $this->startStep("has attribute \"{$attribute }\"") |
| 79 | - ->assertClassHasAttribute($attribute); |
|
| 79 | + ->assertClassHasAttribute($attribute); |
|
| 80 | 80 | |
| 81 | 81 | return $this; |
| 82 | 82 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function doesNotHaveAttribute($attribute): self { |
| 88 | 88 | $this->startStep("does not have attribute \"{$attribute}\"") |
| 89 | - ->assertClassNotHasAttribute($attribute); |
|
| 89 | + ->assertClassNotHasAttribute($attribute); |
|
| 90 | 90 | |
| 91 | 91 | return $this; |
| 92 | 92 | } |