Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
49 | public function testBasicTest() |
||
50 | { |
||
51 | // create String Helper |
||
52 | $stringHelper = $this->app->make("StringHelper"); |
||
53 | |||
54 | // check toTag method |
||
55 | $this->assertTrue($stringHelper->toTag("TestCase")=="test_case"); |
||
56 | |||
57 | // upperFirstLetter |
||
58 | $this->assertTrue($stringHelper->upperFirstLetter("testCase")=="TestCase"); |
||
59 | |||
60 | // lowerFirstLetter |
||
61 | $this->assertTrue($stringHelper->lowerFirstLetter("TestCase")=="testCase"); |
||
62 | |||
63 | // toCamel |
||
64 | $this->assertTrue($stringHelper->toCamel("test_case")=="testCase"); |
||
65 | |||
66 | // toPascal |
||
67 | $this->assertTrue($stringHelper->toPascal("test_case")=="TestCase"); |
||
68 | } |
||
69 | } |
||
70 |
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: