Skip to content

Commit 345f695

Browse files
authored
Merge pull request #411 from aik099/short-array-syntax-fix
Replaced short array syntax usages with traditional array syntax
2 parents 2cd7d77 + efb7309 commit 345f695

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/Selenium2Config.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public function mapRemoteFilePath($file): string
5151

5252
public function skipMessage($testCase, $test): ?string
5353
{
54-
$testCallback = [$testCase, $test];
54+
$testCallback = array($testCase, $test);
5555

56-
if ([Html5Test::class, 'testHtml5Types'] === $testCallback) {
56+
if (array(Html5Test::class, 'testHtml5Types') === $testCallback) {
5757
return <<<TEXT
5858
WebDriver does not support setting value in color inputs.
5959
@@ -80,7 +80,7 @@ public function skipMessage($testCase, $test): ?string
8080
return 'Checking status code is not supported.';
8181
}
8282

83-
if ([JavascriptTest::class, 'testDragDropOntoHiddenItself'] === $testCallback) {
83+
if (array(JavascriptTest::class, 'testDragDropOntoHiddenItself') === $testCallback) {
8484
$browser = $_SERVER['WEB_FIXTURES_BROWSER'] ?? null;
8585

8686
if ($browser === 'firefox' && $this->getSeleniumMajorVersion() === 2) {
@@ -89,7 +89,7 @@ public function skipMessage($testCase, $test): ?string
8989
}
9090

9191
// Skip right-clicking tests, when an unsupported Selenium version detected.
92-
if (([HoverTest::class, 'testRightClickHover'] === $testCallback || [EventsTest::class, 'testRightClick'] === $testCallback)
92+
if ((array(HoverTest::class, 'testRightClickHover') === $testCallback || array(EventsTest::class, 'testRightClick') === $testCallback)
9393
&& !$this->isRightClickingInSeleniumSupported()
9494
) {
9595
return <<<TEXT
@@ -100,7 +100,7 @@ public function skipMessage($testCase, $test): ?string
100100
}
101101

102102
// Skips all tests, except mentioned below, for an unsupported Selenium version.
103-
if ([SeleniumSupportTest::class, 'testDriverCannotBeUsedInUnsupportedSelenium'] !== $testCallback
103+
if (array(SeleniumSupportTest::class, 'testDriverCannotBeUsedInUnsupportedSelenium') !== $testCallback
104104
&& !$this->isSeleniumVersionSupported()
105105
) {
106106
return 'Does not apply to unsupported Selenium versions.';

0 commit comments

Comments
 (0)