Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
Introduction to classes
A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.
See also
Objected-oriented programming conventions
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
TestResultCollectionIterator | final class | PHPUnit\Logging\TestDox | vendor/ |
@template-implements Iterator<int, TestResult> | ||||
TestResultCollector | final class | PHPUnit\Logging\TestDox | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
TestRun | class | Drupal\Core\Test | core/ |
Implements an object that tracks execution of a test run. | ||||
TestRunner | final class | PHPUnit\TextUI | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestRunner | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestRunnerExecutionFinishedSubscriber | final class | PHPUnit\Logging\JUnit | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestRunnerExecutionFinishedSubscriber | final class | PHPUnit\Logging\TeamCity | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestRunnerExecutionStartedSubscriber | final class | PHPUnit\TextUI\Output\Default\ProgressPrinter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestRunnerKernel | class | Drupal\Core\Test | core/ |
Defines a kernel used for running Functional tests and run-tests.sh. | ||||
TestRunnerTriggeredDeprecationSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestRunnerTriggeredWarningSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestRunResultsStorageInterface | interface | Drupal\Core\Test | core/ |
Interface describing a test run results storage object. | 1 | |||
Tests | final class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
TestSetupTrait | trait | Drupal\Core\Test | core/ |
Provides a trait for shared test setup functionality. | ||||
TestSiteExcluder | final class | Drupal\package_manager\PathExcluder | core/ |
Excludes 'sites/simpletest' from stage operations. | ||||
TestSize | abstract class | SebastianBergmann\CodeCoverage\Test\TestSize | vendor/ |
@psalm-immutable | 2 | 3 | ||
TestSize | abstract class | PHPUnit\Framework\TestSize | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | 4 | ||
TestSkippedSubscriber | final class | PHPUnit\Logging\TestDox | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSkippedSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSkippedSubscriber | final class | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSkippedSubscriber | final class | PHPUnit\Logging\JUnit | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSkippedSubscriber | final class | PHPUnit\TextUI\Output\Default\ProgressPrinter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSkippedSubscriber | final class | PHPUnit\Logging\TeamCity | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestStatus | abstract class | PHPUnit\Framework\TestStatus | vendor/ |
@psalm-immutable | 2 | 9 | ||
TestStatus | abstract class | SebastianBergmann\CodeCoverage\Test\TestStatus | vendor/ |
@psalm-immutable | 2 | 3 | ||
TestStatus | class | Drupal\Core\Test | core/ |
Consolidates test result status information. | ||||
TestStubCreated | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
TestStubCreatedSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestStubForIntersectionOfInterfacesCreated | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
TestStubForIntersectionOfInterfacesCreatedSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuite | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
TestSuite | abstract class | PHPUnit\Event\TestSuite | vendor/ |
@psalm-immutable | 3 | 3 | ||
TestSuite | class | PHPUnit\Framework | vendor/ |
@template-implements IteratorAggregate<int, Test> | 1 | 15 | ||
TestSuiteBuilder | final class | PHPUnit\Event\TestSuite | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuiteBuilder | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
TestSuiteCollection | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 6 | |||
TestSuiteCollectionIterator | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuiteFilterProcessor | final class | PHPUnit\TextUI | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuiteFinishedSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuiteFinishedSubscriber | final class | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuiteFinishedSubscriber | final class | PHPUnit\Logging\JUnit | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuiteFinishedSubscriber | final class | PHPUnit\Logging\TeamCity | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuiteForTestClass | final class | PHPUnit\Event\TestSuite | vendor/ |
@psalm-immutable | 2 | |||
TestSuiteForTestMethodWithDataProvider | final class | PHPUnit\Event\TestSuite | vendor/ |
@psalm-immutable | 2 | |||
TestSuiteIterator | final class | PHPUnit\Framework | vendor/ |
@template-implements RecursiveIterator<int, Test> | ||||
TestSuiteLoader | final class | PHPUnit\Runner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
TestSuiteMapper | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
TestSuiteSkippedSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestSuiteSorter | final class | PHPUnit\Runner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 6 | |||
TestSuiteStartedSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit |