You are here

public function AbstractConfig::skipMessage in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/driver-testsuite/tests/AbstractConfig.php \Behat\Mink\Tests\Driver\AbstractConfig::skipMessage()

Parameters

string $testCase The name of the TestCase class:

string $test The name of the test method:

Return value

string|null A message explaining why the test should be skipped, or null to run the test.

File

vendor/behat/mink/driver-testsuite/tests/AbstractConfig.php, line 51

Class

AbstractConfig

Namespace

Behat\Mink\Tests\Driver

Code

public function skipMessage($testCase, $test) {
  if (!$this
    ->supportsCss() && 0 === strpos($testCase, 'Behat\\Mink\\Tests\\Driver\\Css\\')) {
    return 'This driver does not support CSS.';
  }
  if (!$this
    ->supportsJs() && 0 === strpos($testCase, 'Behat\\Mink\\Tests\\Driver\\Js\\')) {
    return 'This driver does not support JavaScript.';
  }
  return null;
}