public function AbstractConfig::skipMessage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
Namespace
Behat\Mink\Tests\DriverCode
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;
}