public function ElementExceptionTest::testElement in Zircon Profile 8
Same name and namespace in other branches
- 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\ExceptionCode
public function testElement() {
$element = $this
->getElementMock();
$exception = new ElementException($element, new \Exception('Something went wrong'));
$this
->assertSame($element, $exception
->getElement());
}