You are here

public function ElementNotFoundExceptionTest::testBuildMessage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/tests/Exception/ElementNotFoundExceptionTest.php \Behat\Mink\Tests\Exception\ElementNotFoundExceptionTest::testBuildMessage()

@dataProvider provideExceptionMessage

File

vendor/behat/mink/tests/Exception/ElementNotFoundExceptionTest.php, line 12

Class

ElementNotFoundExceptionTest

Namespace

Behat\Mink\Tests\Exception

Code

public function testBuildMessage($message, $type, $selector = null, $locator = null) {
  $driver = $this
    ->getMock('Behat\\Mink\\Driver\\DriverInterface');
  $exception = new ElementNotFoundException($driver, $type, $selector, $locator);
  $this
    ->assertEquals($message, $exception
    ->getMessage());
}