| 1 | <?php |
||
| 3 | class correiosTest extends PHPUnit_Framework_TestCase {
|
||
| 4 | |||
| 5 | /** |
||
| 6 | * Testa o construtor da classe |
||
| 7 | */ |
||
| 8 | public function testConstructClass() |
||
| 12 | |||
| 13 | public function testGetContent() |
||
| 18 | |||
| 19 | public function testGetOrderShippingCostSEDEXHoje() |
||
| 23 | |||
| 24 | public function testGetOrderShippingCostSEDEX10() |
||
| 28 | |||
| 29 | public function testGetOrderShippingCostSEDEX() |
||
| 33 | |||
| 34 | public function testGetOrderShppingCost($id_carrier = "1", $shipping_cost = 10, $expected_value = 19.8) |
||
| 42 | } |
||
| 43 |
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: