Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/Selenium2Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public function mapRemoteFilePath($file): string

public function skipMessage($testCase, $test): ?string
{
$testCallback = [$testCase, $test];
$testCallback = array($testCase, $test);

if ([Html5Test::class, 'testHtml5Types'] === $testCallback) {
if (array(Html5Test::class, 'testHtml5Types') === $testCallback) {
return <<<TEXT
WebDriver does not support setting value in color inputs.

Expand All @@ -80,7 +80,7 @@ public function skipMessage($testCase, $test): ?string
return 'Checking status code is not supported.';
}

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

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

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

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