public function ElementNotFoundExceptionTest::testConstructWithSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/Exception/ElementNotFoundExceptionTest.php \Behat\Mink\Tests\Exception\ElementNotFoundExceptionTest::testConstructWithSession()
@group legacy
File
- vendor/
behat/ mink/ tests/ Exception/ ElementNotFoundExceptionTest.php, line 36
Class
Namespace
Behat\Mink\Tests\ExceptionCode
public function testConstructWithSession() {
$driver = $this
->getMock('Behat\\Mink\\Driver\\DriverInterface');
$session = $this
->getMockBuilder('Behat\\Mink\\Session')
->disableOriginalConstructor()
->getMock();
$session
->expects($this
->any())
->method('getDriver')
->will($this
->returnValue($driver));
$exception = new ElementNotFoundException($session);
$this
->assertEquals('Tag not found.', $exception
->getMessage());
}