@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Plugin; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Plugin; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Plugin; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Plugin; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Plugin; |
| 12 | 12 | |
@@ -74,11 +74,11 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | if (array_key_exists('prefer_dist', $options)) { |
| 77 | - $this->preferDist = (bool) $options['prefer_dist']; |
|
| 77 | + $this->preferDist = (bool)$options['prefer_dist']; |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | if (array_key_exists('no_dev', $options)) { |
| 81 | - $this->nodev = (bool) $options['no_dev']; |
|
| 81 | + $this->nodev = (bool)$options['no_dev']; |
|
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Plugin; |
| 12 | 12 | |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | if (isset($options['suffixes'])) { |
| 119 | - $this->suffixes = (array) $options['suffixes']; |
|
| 119 | + $this->suffixes = (array)$options['suffixes']; |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | if (!empty($options['tab_width'])) { |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Plugin; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Plugin; |
| 12 | 12 | |
@@ -43,22 +43,22 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | // calculate total results |
| 45 | 45 | foreach ($this->results->testsuite as $testsuite) { |
| 46 | - $this->totalTests += (int) $testsuite['tests']; |
|
| 47 | - $this->totalTimeTaken += (float) $testsuite['time']; |
|
| 48 | - $this->totalFailures += (int) $testsuite['failures']; |
|
| 46 | + $this->totalTests += (int)$testsuite['tests']; |
|
| 47 | + $this->totalTimeTaken += (float)$testsuite['time']; |
|
| 48 | + $this->totalFailures += (int)$testsuite['failures']; |
|
| 49 | 49 | |
| 50 | 50 | foreach ($testsuite->testcase as $testcase) { |
| 51 | 51 | $testresult = array( |
| 52 | - 'suite' => (string) $testsuite['name'], |
|
| 53 | - 'file' => str_replace($this->phpci->buildPath, '/', (string) $testcase['file']), |
|
| 54 | - 'name' => (string) $testcase['name'], |
|
| 55 | - 'feature' => (string) $testcase['feature'], |
|
| 56 | - 'assertions' => (int) $testcase['assertions'], |
|
| 57 | - 'time' => (float) $testcase['time'], |
|
| 52 | + 'suite' => (string)$testsuite['name'], |
|
| 53 | + 'file' => str_replace($this->phpci->buildPath, '/', (string)$testcase['file']), |
|
| 54 | + 'name' => (string)$testcase['name'], |
|
| 55 | + 'feature' => (string)$testcase['feature'], |
|
| 56 | + 'assertions' => (int)$testcase['assertions'], |
|
| 57 | + 'time' => (float)$testcase['time'], |
|
| 58 | 58 | ); |
| 59 | 59 | |
| 60 | 60 | if (isset($testcase['class'])) { |
| 61 | - $testresult['class'] = (string) $testcase['class']; |
|
| 61 | + $testresult['class'] = (string)$testcase['class']; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | // PHPUnit testcases does not have feature field. Use class::method instead |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | if (isset($testcase->failure)) { |
| 70 | 70 | $testresult['pass'] = false; |
| 71 | - $testresult['message'] = (string) $testcase->failure; |
|
| 71 | + $testresult['message'] = (string)$testcase->failure; |
|
| 72 | 72 | } else { |
| 73 | 73 | $testresult['pass'] = true; |
| 74 | 74 | } |