function UncaughtExceptionTest::assertText

Overrides AssertLegacyTrait::assertText

4 calls to UncaughtExceptionTest::assertText()
UncaughtExceptionTest::assertRaw in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Passes if the raw text IS found on the loaded page, fail otherwise.
UncaughtExceptionTest::testLoggerException in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests fallback to PHP error log when an exception is thrown while logging.
UncaughtExceptionTest::testUncaughtException in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests uncaught exception handling when system is in a bad state.
UncaughtExceptionTest::testUncaughtExceptionCustomExceptionHandler in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests uncaught exception handling with custom exception handler.

File

core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php, line 373

Class

UncaughtExceptionTest
Tests kernel panic when things are really messed up.

Namespace

Drupal\FunctionalTests\Bootstrap

Code

protected function assertText($text) {
    $this->assertStringContainsString($text, $this->response);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.