function ExpectDeprecationTest::testExpectDeprecation
Same name in other branches
- 9 core/tests/Drupal/Tests/ExpectDeprecationTest.php \Drupal\Tests\ExpectDeprecationTest::testExpectDeprecation()
- 8.9.x core/tests/Drupal/Tests/ExpectDeprecationTest.php \Drupal\Tests\ExpectDeprecationTest::testExpectDeprecation()
- 10 core/tests/Drupal/Tests/ExpectDeprecationTest.php \Drupal\Tests\ExpectDeprecationTest::testExpectDeprecation()
Tests expectDeprecation.
File
-
core/
tests/ Drupal/ Tests/ ExpectDeprecationTest.php, line 22
Class
- ExpectDeprecationTest
- Ensures Drupal has test coverage of Symfony's deprecation testing.
Namespace
Drupal\TestsCode
public function testExpectDeprecation() : void {
$this->expectDeprecation('Test deprecation');
// phpcs:ignore Drupal.Semantics.FunctionTriggerError
@trigger_error('Test deprecation', E_USER_DEPRECATED);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.