function DrupalDebugClassLoaderTest::testNoDeprecation
Tests scenarios that should NOT trigger cross-module deprecations.
Attributes
#[TestWith([
'Drupal\\drupal_debug_test_core\\SameModuleChild',
])]
#[TestWith([
'Drupal\\drupal_debug_test_other\\ChildWithNativeReturnType',
])]
#[TestWith([
'Drupal\\drupal_debug_test_other\\ChildWithReturnAnnotation',
])]
#[TestWith([
'Drupal\\drupal_debug_test_other\\ChildWithDeprecatedMethod',
])]
#[TestWith([
'Drupal\\drupal_debug_test_other\\ChildWithoutOverride',
])]
File
-
core/
tests/ Drupal/ Tests/ TestTools/ ErrorHandler/ DrupalDebugClassLoaderTest.php, line 44
Class
- DrupalDebugClassLoaderTest
- Tests the DrupalDebugClassLoader.
Namespace
Drupal\Tests\TestTools\ErrorHandlerCode
public function testNoDeprecation(string $class) : void {
$this->assertEmpty($this->getReturnTypeDeprecations($class));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.