Example: PHPUnit in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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 - Module file for phpunit_example.
Classes
Name | Location | Description |
---|---|---|
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
Name | Location | Description |
---|---|---|
DisplayInfoInterface |
modules/ |
An interface to objects that provide displayable information. |