@@ -194,7 +194,7 @@ private function assembleTestPhp($testObject)
194
194
$ hookPhp = $ this ->generateHooksPhp ($ testObject ->getHooks ());
195
195
$ testsPhp = $ this ->generateTestPhp ($ testObject );
196
196
} catch (TestReferenceException $ e ) {
197
- throw new TestReferenceException ($ e ->getMessage (). " in Test \"" . $ testObject ->getName () . "\"" );
197
+ throw new TestReferenceException ($ e ->getMessage () . " in Test \"" . $ testObject ->getName () . "\"" );
198
198
}
199
199
200
200
$ cestPhp = "<?php \n" ;
@@ -252,7 +252,7 @@ private function assembleAllTestPhp($testManifest, $nodes, array $testsToIgnore)
252
252
private function debug ($ messages )
253
253
{
254
254
if ($ this ->debug && $ messages ) {
255
- $ messages = (array ) $ messages ;
255
+ $ messages = (array )$ messages ;
256
256
foreach ($ messages as $ message ) {
257
257
$ this ->consoleOutput ->writeln ($ message );
258
258
}
@@ -316,9 +316,9 @@ private function generateAnnotationsPhp($annotationsObject, $isMethod = false)
316
316
continue ;
317
317
}
318
318
if (!$ isMethod ) {
319
- $ annotationsPhp .= $ this ->generateClassAnnotations ($ annotationType , $ annotationName );
319
+ $ annotationsPhp .= $ this ->generateClassAnnotations ($ annotationType , $ annotationName );
320
320
} else {
321
- $ annotationsPhp .= $ this ->generateMethodAnnotations ($ annotationType , $ annotationName );
321
+ $ annotationsPhp .= $ this ->generateMethodAnnotations ($ annotationType , $ annotationName );
322
322
}
323
323
}
324
324
@@ -544,10 +544,9 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
544
544
// validate the param array is in the correct format
545
545
$ this ->validateParameterArray ($ customActionAttributes ['parameterArray ' ]);
546
546
547
- $ parameterArray = "[ " . $ this ->addUniquenessToParamArray (
548
- $ customActionAttributes ['parameterArray ' ]
549
- )
550
- . "] " ;
547
+ $ parameterArray = "[ " ;
548
+ $ parameterArray .= $ this ->addUniquenessToParamArray ($ customActionAttributes ['parameterArray ' ]);
549
+ $ parameterArray .= "] " ;
551
550
}
552
551
553
552
if (isset ($ customActionAttributes ['requiredAction ' ])) {
@@ -1186,12 +1185,9 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
1186
1185
break ;
1187
1186
case "field " :
1188
1187
$ fieldKey = $ actionObject ->getCustomActionAttributes ()['key ' ];
1189
- $ argRef = "\t\t\$" . str_replace (
1190
- ucfirst ($ fieldKey ),
1191
- "" ,
1192
- $ stepKey
1193
- ) . "Fields[' {$ fieldKey }'] = $ {input}; \n" ;
1194
- $ testSteps .= $ this ->resolveTestVariable ($ argRef , [$ input ], $ actionObject ->getActionOrigin ());
1188
+ $ argRef = "\t\t\$" ;
1189
+ $ argRef .= str_replace (ucfirst ($ fieldKey ), "" , $ stepKey ) . "Fields[' {$ fieldKey }'] = $ {input}; \n" ;
1190
+ $ testSteps .= $ this ->resolveTestVariable ($ argRef , [$ input ], $ actionObject ->getActionOrigin ());
1195
1191
break ;
1196
1192
default :
1197
1193
$ testSteps .= $ this ->wrapFunctionCall ($ actor , $ actionObject , $ selector , $ input , $ parameter );
@@ -1804,10 +1800,11 @@ private function stripQuotes($inStr)
1804
1800
private function validateXmlAttributesMutuallyExclusive ($ key , $ tagName , $ attributes )
1805
1801
{
1806
1802
$ rules = [
1807
- ['attributes ' => [
1808
- 'selector ' ,
1809
- 'selectorArray ' ,
1810
- ]
1803
+ [
1804
+ 'attributes ' => [
1805
+ 'selector ' ,
1806
+ 'selectorArray ' ,
1807
+ ]
1811
1808
],
1812
1809
[
1813
1810
'attributes ' => [
0 commit comments