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