You are here

public function ExpectationExceptionTest::testEmptyMessageAndPreviousException in Zircon Profile 8

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

File

vendor/behat/mink/tests/Exception/ExpectationExceptionTest.php, line 9

Class

ExpectationExceptionTest

Namespace

Behat\Mink\Tests\Exception

Code

public function testEmptyMessageAndPreviousException() {
  $exception = new ExpectationException('', $this
    ->getMock('Behat\\Mink\\Driver\\DriverInterface'), new \Exception('Something failed'));
  $this
    ->assertEquals('Something failed', $exception
    ->getMessage());
}