| 1 | <?php |
||
| 20 | class IdGeneratorTest extends UnitTestCase |
||
| 21 | { |
||
| 22 | //<editor-fold desc="Public Methods"> |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @covers \Tfboe\FmLib\Entity\Helpers\IdGenerator::createIdFrom |
||
| 26 | */ |
||
| 27 | public function testCreateIdFrom() |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * test function for generating an guid |
||
| 31 | * @return string fixed test string |
||
| 32 | */ |
||
| 33 | function test_com_create_guid() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @covers \Tfboe\FmLib\Entity\Helpers\IdGenerator::generate |
||
| 46 | * @uses \Tfboe\FmLib\Entity\Helpers\IdGenerator::createIdFrom |
||
| 47 | */ |
||
| 48 | public function testGenerate() |
||
| 55 | //</editor-fold desc="Public Methods"> |
||
| 56 | } |
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: