Example: PHPUnit
Same name in other branches
- 3.x modules/phpunit_example/phpunit_example.module \phpunit_example
- 4.0.x modules/phpunit_example/phpunit_example.module \phpunit_example
This example demonstrates PHPUnit for Drupal 8 unit testing.
Parent topics
File
-
phpunit_example/
phpunit_example.module, line 8
Classes
Title Sort descending | File name | Summary |
---|---|---|
AddClass | phpunit_example/ |
A class with features to show how to do unit testing. |
AddClassTest | phpunit_example/ |
AddClass units tests. |
DisplayManager | phpunit_example/ |
An example class to demonstrate unit testing. |
DisplayManagerTest | phpunit_example/ |
DisplayManager unit test with doubles. |
PHPUnitExampleMenuTest | phpunit_example/ |
Test the user-facing menus in PHPUnit Example. |
ProtectedPrivates | phpunit_example/ |
A class with features to show how to do unit testing. |
ProtectedPrivatesSubclass | phpunit_example/ |
A class for testing ProtectedPrivate::protectedAdd(). |
ProtectedPrivatesTest | phpunit_example/ |
ProtectedPrivates unit testing of restricted methods. |
Interfaces
Title Sort descending | File name | Summary |
---|---|---|
DisplayInfoInterface | phpunit_example/ |
An interface to objects that provide displayable information. |