You are here

public function CoreDriverTest::testNoExtraMethods in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/tests/Driver/CoreDriverTest.php \Behat\Mink\Tests\Driver\CoreDriverTest::testNoExtraMethods()

File

vendor/behat/mink/tests/Driver/CoreDriverTest.php, line 9

Class

CoreDriverTest

Namespace

Behat\Mink\Tests\Driver

Code

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()));
  }
}