public function ExpectationExceptionTest::testConstructWithSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/Exception/ExpectationExceptionTest.php \Behat\Mink\Tests\Exception\ExpectationExceptionTest::testConstructWithSession()
@group legacy
File
- vendor/
behat/ mink/ tests/ Exception/ ExpectationExceptionTest.php, line 100
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 ExpectationException('', $session, new \Exception('Something failed'));
$this
->assertEquals('Something failed', $exception
->getMessage());
}