@@ -16,6 +16,6 @@ |
||
| 16 | 16 | $exception = new ExpectationNotFoundException($badAlias); |
| 17 | 17 | |
| 18 | 18 | $this->assertInstanceOf('\OutOfBoundsException', $exception); |
| 19 | - $this->assertEquals($exception->getMessage(), 'Expectation with ' . $badAlias . ' could not be found.'); |
|
| 19 | + $this->assertEquals($exception->getMessage(), 'Expectation with '.$badAlias.' could not be found.'); |
|
| 20 | 20 | } |
| 21 | 21 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $this->processConfiguration(new Configuration(), $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $this->processConfiguration(new Configuration(), $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $this->processConfiguration(new Configuration(), $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -42,7 +42,8 @@ discard block |
||
| 42 | 42 | ); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - private function assertElementHasClass(WebDriverElement $element, $class, $has = true) { |
|
| 45 | + private function assertElementHasClass(WebDriverElement $element, $class, $has = true) |
|
| 46 | + { |
|
| 46 | 47 | $classes = $element->getAttribute('class'); |
| 47 | 48 | |
| 48 | 49 | $this->assertNotNull($classes); |
@@ -58,7 +59,8 @@ discard block |
||
| 58 | 59 | ); |
| 59 | 60 | } |
| 60 | 61 | |
| 61 | - private function assertElementNotHasClass(WebDriverElement $element, $class) { |
|
| 62 | + private function assertElementNotHasClass(WebDriverElement $element, $class) |
|
| 63 | + { |
|
| 62 | 64 | $this->assertElementHasClass($element, $class, false); |
| 63 | 65 | } |
| 64 | 66 | } |
@@ -87,13 +87,13 @@ discard block |
||
| 87 | 87 | { |
| 88 | 88 | $this->waitForLoadingAnimation(); |
| 89 | 89 | $this->webDriver->findElement( |
| 90 | - WebDriverBy::cssSelector('.tests li:nth-child(' . $number . ') .test a:nth-child(2)') |
|
| 90 | + WebDriverBy::cssSelector('.tests li:nth-child('.$number.') .test a:nth-child(2)') |
|
| 91 | 91 | )->click(); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | private function getResultsOnPage($selector = ' span') |
| 95 | 95 | { |
| 96 | - $selector = '.result' . $selector; |
|
| 96 | + $selector = '.result'.$selector; |
|
| 97 | 97 | |
| 98 | 98 | $results = $this->webDriver->findElements( |
| 99 | 99 | WebDriverBy::cssSelector($selector) |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | private function getActionItem($number) |
| 106 | 106 | { |
| 107 | 107 | return $this->webDriver->findElement( |
| 108 | - WebDriverBy::cssSelector('.widget-content .row a:nth-child(' . $number . ')') |
|
| 108 | + WebDriverBy::cssSelector('.widget-content .row a:nth-child('.$number.')') |
|
| 109 | 109 | ); |
| 110 | 110 | } |
| 111 | 111 | |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | private function getUsers($suffix = '') |
| 133 | 133 | { |
| 134 | 134 | return $this->webDriver->findElements( |
| 135 | - WebDriverBy::cssSelector('.users li' . $suffix) |
|
| 135 | + WebDriverBy::cssSelector('.users li'.$suffix) |
|
| 136 | 136 | ); |
| 137 | 137 | } |
| 138 | 138 | |