You are here

public function ElementExceptionTest::testElement in Zircon Profile 8

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

File

vendor/behat/mink/tests/Exception/ElementExceptionTest.php, line 21

Class

ElementExceptionTest
@group legacy

Namespace

Behat\Mink\Tests\Exception

Code

public function testElement() {
  $element = $this
    ->getElementMock();
  $exception = new ElementException($element, new \Exception('Something went wrong'));
  $this
    ->assertSame($element, $exception
    ->getElement());
}