| 1 | <?php |
||
| 10 | class ModuleHandlerTest extends PHPUnit_Framework_TestCase |
||
| 11 | { |
||
| 12 | private $handler; |
||
| 13 | |||
| 14 | function setUp() |
||
| 18 | |||
| 19 | function testUseModuleThrowsAnExceptionIfTheModuleIsNotValid() |
||
| 28 | |||
| 29 | function testSetPrimaryModuleThrowsAnExceptionWhenNoIntranetIsset() |
||
| 38 | |||
| 39 | function testUseModuleReturnsTheModuleAsAnObjectTrueWhenModuleIsAvailable() |
||
| 44 | |||
| 45 | function testGetModule() |
||
| 51 | |||
| 52 | function testGetModules() |
||
| 63 | } |
||
| 64 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: