function SkippedDeprecationTest::testSkippingPhpDeprecations

Tests skipping E_DEPRECATED deprecations in unit tests.

See also

\Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations()

File

core/tests/Drupal/Tests/SkippedDeprecationTest.php, line 35

Class

SkippedDeprecationTest
@group Test

Namespace

Drupal\Tests

Code

public function testSkippingPhpDeprecations() {
    include_once __DIR__ . '/../../fixtures/deprecated_code.php';
    $this->addToAssertionCount(1);
}

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