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