@@ -92,6 +92,7 @@ |
||
92 | 92 | /** |
93 | 93 | * called when Storyplayer exits |
94 | 94 | * |
95 | + * @param boolean $summary |
|
95 | 96 | * @return void |
96 | 97 | */ |
97 | 98 | public function writeFinalReport($duration, $summary) |
@@ -112,11 +112,9 @@ discard block |
||
112 | 112 | |
113 | 113 | // this is our opportunity to tell the user how our story(ies) |
114 | 114 | // went in detail |
115 | - foreach ($this->results as $result) |
|
116 | - { |
|
115 | + foreach ($this->results as $result) { |
|
117 | 116 | // so what happened? |
118 | - switch ($result->resultCode) |
|
119 | - { |
|
117 | + switch ($result->resultCode) { |
|
120 | 118 | case PhaseGroup_Result::OKAY: |
121 | 119 | // this is a good result |
122 | 120 | $succeededGroups[] = $result; |
@@ -303,8 +301,7 @@ discard block |
||
303 | 301 | |
304 | 302 | // does the phase have an exception? |
305 | 303 | $e = $phaseResult->getException(); |
306 | - if ($e) |
|
307 | - { |
|
304 | + if ($e) { |
|
308 | 305 | $stackTrace = $e->getTrace(); |
309 | 306 | $trace = $e->getTraceAsString(); |
310 | 307 | } |
@@ -431,6 +431,7 @@ discard block |
||
431 | 431 | } |
432 | 432 | |
433 | 433 | /** |
434 | + * @param Prose_Loader $proseLoader |
|
434 | 435 | * @return void |
435 | 436 | */ |
436 | 437 | public function setProseLoader($proseLoader) |
@@ -447,6 +448,9 @@ discard block |
||
447 | 448 | return $this->phaseLoader; |
448 | 449 | } |
449 | 450 | |
451 | + /** |
|
452 | + * @param Phase_Loader $phaseLoader |
|
453 | + */ |
|
450 | 454 | public function setPhaseLoader($phaseLoader) |
451 | 455 | { |
452 | 456 | $this->phaseLoader = $phaseLoader; |
@@ -471,6 +475,9 @@ discard block |
||
471 | 475 | $this->output = $output; |
472 | 476 | } |
473 | 477 | |
478 | + /** |
|
479 | + * @param \DataSift\Storyplayer\OutputLib\DataFormatter $dataFormatter |
|
480 | + */ |
|
474 | 481 | public function setDataFormatter($dataFormatter) |
475 | 482 | { |
476 | 483 | $this->dataFormatter = $dataFormatter; |
@@ -503,6 +510,7 @@ discard block |
||
503 | 510 | } |
504 | 511 | |
505 | 512 | /** |
513 | + * @param \DataSift\Storyplayer\ConfigLib\ActiveConfig $config |
|
506 | 514 | * @return void |
507 | 515 | */ |
508 | 516 | public function setConfig($config) |
@@ -766,7 +774,7 @@ discard block |
||
766 | 774 | * |
767 | 775 | * @param string $methodName |
768 | 776 | * @param array $methodArgs |
769 | - * @return mixed |
|
777 | + * @return \Prose\Prose |
|
770 | 778 | */ |
771 | 779 | public function __call($methodName, $methodArgs) |
772 | 780 | { |
@@ -622,18 +622,18 @@ |
||
622 | 622 | // tell the template which story it is being used with |
623 | 623 | $tmpl->setStory($this); |
624 | 624 | |
625 | - $tmpl->hasTestCanRunCheck() && $this->addTestCanRunCheck($tmpl->getTestCanRunCheck()); |
|
626 | - $tmpl->hasTestSetup() && $this->addTestSetup($tmpl->getTestSetup()); |
|
627 | - $tmpl->hasTestTeardown() && $this->addTestTeardown($tmpl->getTestTeardown()); |
|
628 | - $tmpl->hasPerPhaseSetup() && $this->addPerPhaseSetup($tmpl->getPerPhaseSetup()); |
|
629 | - $tmpl->hasPerPhaseTeardown() && $this->addPerPhaseTeardown($tmpl->getPerPhaseTeardown()); |
|
630 | - $tmpl->hasDeviceSetup() && $this->addDeviceSetup($tmpl->getDeviceSetup()); |
|
631 | - $tmpl->hasDeviceTeardown() && $this->addDeviceTeardown($tmpl->getDeviceTeardown()); |
|
632 | - $tmpl->hasHints() && $this->addHints($tmpl->getHints()); |
|
633 | - $tmpl->hasPreTestPrediction() && $this->addPreTestPrediction($tmpl->getPreTestPrediction()); |
|
634 | - $tmpl->hasPreTestInspection() && $this->addPreTestInspection($tmpl->getPreTestInspection()); |
|
635 | - $tmpl->hasAction() && $this->addAction($tmpl->getAction()); |
|
636 | - $tmpl->hasPostTestInspection() && $this->addPostTestInspection($tmpl->getPostTestInspection()); |
|
625 | + $tmpl->hasTestCanRunCheck() && $this->addTestCanRunCheck($tmpl->getTestCanRunCheck()); |
|
626 | + $tmpl->hasTestSetup() && $this->addTestSetup($tmpl->getTestSetup()); |
|
627 | + $tmpl->hasTestTeardown() && $this->addTestTeardown($tmpl->getTestTeardown()); |
|
628 | + $tmpl->hasPerPhaseSetup() && $this->addPerPhaseSetup($tmpl->getPerPhaseSetup()); |
|
629 | + $tmpl->hasPerPhaseTeardown() && $this->addPerPhaseTeardown($tmpl->getPerPhaseTeardown()); |
|
630 | + $tmpl->hasDeviceSetup() && $this->addDeviceSetup($tmpl->getDeviceSetup()); |
|
631 | + $tmpl->hasDeviceTeardown() && $this->addDeviceTeardown($tmpl->getDeviceTeardown()); |
|
632 | + $tmpl->hasHints() && $this->addHints($tmpl->getHints()); |
|
633 | + $tmpl->hasPreTestPrediction() && $this->addPreTestPrediction($tmpl->getPreTestPrediction()); |
|
634 | + $tmpl->hasPreTestInspection() && $this->addPreTestInspection($tmpl->getPreTestInspection()); |
|
635 | + $tmpl->hasAction() && $this->addAction($tmpl->getAction()); |
|
636 | + $tmpl->hasPostTestInspection() && $this->addPostTestInspection($tmpl->getPostTestInspection()); |
|
637 | 637 | |
638 | 638 | // remember this template for future use |
639 | 639 | $this->storyTemplates[] = $tmpl; |
@@ -1137,8 +1137,7 @@ |
||
1137 | 1137 | public function getOneAction() |
1138 | 1138 | { |
1139 | 1139 | // do we have any callbacks to pick from? |
1140 | - if (count($this->actionsCallbacks) == 0) |
|
1141 | - { |
|
1140 | + if (count($this->actionsCallbacks) == 0) { |
|
1142 | 1141 | throw new E5xx_NoStoryActions($this->getName()); |
1143 | 1142 | } |
1144 | 1143 |