diff --git a/tests/Selenium2Config.php b/tests/Selenium2Config.php index 38b7f1bc..b40cbb57 100644 --- a/tests/Selenium2Config.php +++ b/tests/Selenium2Config.php @@ -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 <<getSeleniumMajorVersion() === 2) { @@ -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 <<isSeleniumVersionSupported() ) { return 'Does not apply to unsupported Selenium versions.';