Completed
Push — master ( 44516d...e3b4fb )
by Kevin
06:11 queued 01:49
created
lib/Util/Configuration/ClassConfigurationReader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
             $isVendor = array_pop($testParts) == 'vendor';
45 45
 
46 46
             if ($isVendor) {
47
-                $path = realpath(__DIR__ . '/../../../../..'); // Get out of the Magium directories
47
+                $path = realpath(__DIR__.'/../../../../..'); // Get out of the Magium directories
48 48
             } else {
49
-                $path = realpath(__DIR__ . '/../../..');
49
+                $path = realpath(__DIR__.'/../../..');
50 50
             }
51 51
 
52 52
             $count = 0;
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
         $classes = $this->introspectClass($config);
77 77
 
78 78
         foreach ($classes as $class) {
79
-            $configurationFile = $class . '.php';
80
-            $configurationFile = $configurationDir . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $configurationFile);
79
+            $configurationFile = $class.'.php';
80
+            $configurationFile = $configurationDir.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $configurationFile);
81 81
 
82 82
             if (file_exists($configurationFile)) {
83 83
                 include $configurationFile;
Please login to merge, or discard this patch.
lib/Util/Configuration/AbstractConfigurationReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             $reflectionClass = $class;
25 25
         }
26 26
 
27
-        foreach ($originalReflectionClass->getInterfaceNames() as $name){
27
+        foreach ($originalReflectionClass->getInterfaceNames() as $name) {
28 28
             $this->addClass($name);
29 29
             $interfaces[] = $name;
30 30
             $reflectionInterface = new \ReflectionClass($name);
Please login to merge, or discard this patch.
lib/Assertions/LoggingAssertionExecutor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         }
35 35
         try {
36 36
             $assertion->assert();
37
-            $this->logger->logAssertionSuccess( $assertion, $extra );
37
+            $this->logger->logAssertionSuccess($assertion, $extra);
38 38
         } catch (\Exception $e) {
39 39
             $this->logger->logAssertionFailure($e, $assertion, $extra);
40 40
             $this->testCase->fail($e->getMessage());
Please login to merge, or discard this patch.
lib/TestCase/Configurable/Interpolator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function interpolate($string)
24 24
     {
25
-        $this->logger->info('Interpolating string: ' . $string);
25
+        $this->logger->info('Interpolating string: '.$string);
26 26
         $matches = null;
27 27
         // Finding {{$product->setEntityId(123)->load()}} type methods
28 28
         if (preg_match('/\{\{(?:\$)([^{]+)\}\}/', $string, $matches)) {
Please login to merge, or discard this patch.
lib/AbstractTestCase.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         }
212 212
     }
213 213
 
214
-    public static function resolveClass( $class, $prefix = null)
214
+    public static function resolveClass($class, $prefix = null)
215 215
     {
216 216
         $origClass = $class;
217 217
         if ($prefix !== null) {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         }
226 226
 
227 227
         foreach (self::$baseNamespaces as $namespace) {
228
-            $fqClass = $namespace . '\\' . $class;
228
+            $fqClass = $namespace.'\\'.$class;
229 229
             try {
230 230
                 if (class_exists($fqClass)) {
231 231
                     return $fqClass;
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
             $element = $this->byXpath(sprintf('//%s[contains(., "%s")]', $node, addslashes($text)));
518 518
             self::assertWebDriverElement($element);
519 519
         } catch (\Exception $e) {
520
-            $this->fail('The body did not contain the text: ' . $text);
520
+            $this->fail('The body did not contain the text: '.$text);
521 521
         }
522 522
     }
523 523
 
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
             // If the element is not found then an exception will be thrown
529 529
             self::assertWebDriverElement($element);
530 530
         } catch (\Exception $e) {
531
-            $this->fail('The body did not contain the text: ' . $text);
531
+            $this->fail('The body did not contain the text: '.$text);
532 532
         }
533 533
     }
534 534
 
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
     {
537 537
         try {
538 538
             $this->webdriver->byXpath(sprintf('//body[contains(., "%s")]', $text));
539
-            $this->fail('The page contains the words: ' . $text);
539
+            $this->fail('The page contains the words: '.$text);
540 540
         } catch (NoSuchElementException $e) {
541 541
             // Exception thrown is a success
542 542
             self::assertInstanceOf(NoSuchElementException::class, $e);
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
     {
578 578
 
579 579
         if ($parentElementSelector !== null) {
580
-            $xpathTemplate = $parentElementSelector . $xpathTemplate;
580
+            $xpathTemplate = $parentElementSelector.$xpathTemplate;
581 581
         }
582 582
         if ($specificNodeType !== null) {
583 583
             return $this->byXpath(sprintf($xpathTemplate, $specificNodeType, $this->getTranslator()->translatePlaceholders($text)));
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
             }
591 591
         }
592 592
         // This is here for consistency with the other by* methods
593
-        WebDriverException::throwException(7, 'Could not find element with text: ' . $this->getTranslator()->translatePlaceholders($text), []);
593
+        WebDriverException::throwException(7, 'Could not find element with text: '.$this->getTranslator()->translatePlaceholders($text), []);
594 594
     }
595 595
 
596 596
     /**
Please login to merge, or discard this patch.
lib/Util/Phpunit5/MasterListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $this->result = null;
38 38
     }
39 39
 
40
-    public function addListener( $listener)
40
+    public function addListener($listener)
41 41
     {
42 42
         // This pretty piece of code is to maintain compatibility between PHPUnit 5 and 6.
43 43
         if ($listener instanceof \PHPUnit_Framework_TestListener) {
Please login to merge, or discard this patch.
lib/Util/Log/Logger.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
     public function logAssertionSuccess(AbstractAssertion $assertion, array $extra)
74 74
     {
75 75
         $extra = array_merge($extra, ['type' => 'assertion', 'result' => self::STATUS_PASSED]);
76
-        $this->info(get_class($assertion) . ' - passed', $this->createExtra($extra));
76
+        $this->info(get_class($assertion).' - passed', $this->createExtra($extra));
77 77
     }
78 78
 
79 79
     public function logAssertionFailure(Exception $e, AbstractAssertion $assertion, array $extra)
80 80
     {
81 81
         $extra = array_merge($extra, ['type' => 'assertion', 'result' => self::STATUS_FAILED, 'stack_trace' => $e->getTrace()]);
82
-        $this->err(get_class($assertion) . ' - ' . $e->getMessage(), $this->createExtra($extra));
82
+        $this->err(get_class($assertion).' - '.$e->getMessage(), $this->createExtra($extra));
83 83
     }
84 84
 
85 85
     public function createExtra($includeArray = [])
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
     {
147 147
         if ($test instanceof TestCase) {
148 148
             if (!$this->testName) {
149
-                $this->setTestName(get_class($test) . '::' . $test->getName());
149
+                $this->setTestName(get_class($test).'::'.$test->getName());
150 150
             }
151
-            $this->invokedTest = get_class($test) . '::' . $test->getName();
151
+            $this->invokedTest = get_class($test).'::'.$test->getName();
152 152
             $this->setTestStatus(self::STATUS_PASSED);
153 153
         }
154 154
 
Please login to merge, or discard this patch.
lib/TestCase/Initializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     protected function getDefaultConfiguration()
150 150
     {
151 151
         // Choose the correct logger/listener for the version of PHPUnit being used
152
-        $loggerClass = class_exists('PHPUnit_Framework_TestCase')?LoggerPHPUnit5::class:Logger::class;
152
+        $loggerClass = class_exists('PHPUnit_Framework_TestCase') ?LoggerPHPUnit5::class : Logger::class;
153 153
 
154 154
         return [
155 155
             'definition' => [
@@ -215,12 +215,12 @@  discard block
 block discarded – undo
215 215
 
216 216
         $count = 0;
217 217
 
218
-        $path = realpath(__DIR__ . '/../');
218
+        $path = realpath(__DIR__.'/../');
219 219
 
220 220
         while ($count++ < 5) {
221 221
             $dir = "{$path}/configuration/";
222 222
             if (is_dir($dir)) {
223
-                foreach (glob($dir . '*.php') as $file) {
223
+                foreach (glob($dir.'*.php') as $file) {
224 224
                     $configArray = array_merge_recursive($configArray, include $file);
225 225
                 }
226 226
                 break;
Please login to merge, or discard this patch.
lib/Util/Log/LoggerPHPUnit5.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
     public function logAssertionSuccess(AbstractAssertion $assertion, array $extra)
74 74
     {
75 75
         $extra = array_merge($extra, ['type' => 'assertion', 'result' => self::STATUS_PASSED]);
76
-        $this->info(get_class($assertion) . ' - passed', $this->createExtra($extra));
76
+        $this->info(get_class($assertion).' - passed', $this->createExtra($extra));
77 77
     }
78 78
 
79 79
     public function logAssertionFailure(Exception $e, AbstractAssertion $assertion, array $extra)
80 80
     {
81 81
         $extra = array_merge($extra, ['type' => 'assertion', 'result' => self::STATUS_FAILED, 'stack_trace' => $e->getTrace()]);
82
-        $this->err(get_class($assertion) . ' - ' . $e->getMessage(), $this->createExtra($extra));
82
+        $this->err(get_class($assertion).' - '.$e->getMessage(), $this->createExtra($extra));
83 83
     }
84 84
 
85 85
     public function createExtra($includeArray = [])
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
     {
147 147
         if ($test instanceof TestCase) {
148 148
             if (!$this->testName) {
149
-                $this->setTestName(get_class($test) . '::' . $test->getName());
149
+                $this->setTestName(get_class($test).'::'.$test->getName());
150 150
             }
151
-            $this->invokedTest = get_class($test) . '::' . $test->getName();
151
+            $this->invokedTest = get_class($test).'::'.$test->getName();
152 152
             $this->setTestStatus(self::STATUS_PASSED);
153 153
         }
154 154
 
Please login to merge, or discard this patch.