You are here

private function WebAssertTest::assertCorrectAssertion in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/tests/WebAssertTest.php \Behat\Mink\Tests\WebAssertTest::assertCorrectAssertion()
41 calls to WebAssertTest::assertCorrectAssertion()
WebAssertTest::testAddressEquals in vendor/behat/mink/tests/WebAssertTest.php
WebAssertTest::testAddressEqualsEmptyPath in vendor/behat/mink/tests/WebAssertTest.php
WebAssertTest::testAddressEqualsEndingInScript in vendor/behat/mink/tests/WebAssertTest.php
WebAssertTest::testAddressMatches in vendor/behat/mink/tests/WebAssertTest.php
WebAssertTest::testAddressNotEquals in vendor/behat/mink/tests/WebAssertTest.php

... See full list

File

vendor/behat/mink/tests/WebAssertTest.php, line 1274

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

private function assertCorrectAssertion($assertion, $arguments) {
  try {
    call_user_func_array(array(
      $this->assert,
      $assertion,
    ), $arguments);
  } catch (ExpectationException $e) {
    $this
      ->fail('Correct assertion should not throw an exception: ' . $e
      ->getMessage());
  }
}