public function CoreDriverTest::testNoExtraMethods in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/Driver/CoreDriverTest.php \Behat\Mink\Tests\Driver\CoreDriverTest::testNoExtraMethods()
File
- vendor/
behat/ mink/ tests/ Driver/ CoreDriverTest.php, line 9
Class
Namespace
Behat\Mink\Tests\DriverCode
public function testNoExtraMethods() {
$interfaceRef = new \ReflectionClass('Behat\\Mink\\Driver\\DriverInterface');
$coreDriverRef = new \ReflectionClass('Behat\\Mink\\Driver\\CoreDriver');
foreach ($coreDriverRef
->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
$this
->assertTrue($interfaceRef
->hasMethod($method
->getName()), sprintf('CoreDriver should not implement methods which are not part of the DriverInterface but %s found', $method
->getName()));
}
}