1 | <?php |
||
6 | class CurlTest extends \PHPUnit_Framework_TestCase |
||
7 | { |
||
8 | /** |
||
9 | * @covers \Onurb\Bundle\YumlBundle\Curl\Curl |
||
10 | */ |
||
11 | public function testIsInstanceOf() |
||
22 | |||
23 | /** |
||
24 | * @covers \Onurb\Bundle\YumlBundle\Curl\Curl |
||
25 | * @expectedException \Exception |
||
26 | */ |
||
27 | public function testResponseWithWrongUrl() |
||
34 | |||
35 | /** |
||
36 | * @covers \Onurb\Bundle\YumlBundle\Curl\Curl |
||
37 | */ |
||
38 | public function testResponseWithCorrectUrl() |
||
46 | |||
47 | /** |
||
48 | * @covers \Onurb\Bundle\YumlBundle\Curl\Curl |
||
49 | */ |
||
50 | public function testResponseWithPostData() |
||
63 | |||
64 | /** |
||
65 | * @covers \Onurb\Bundle\YumlBundle\Curl\Curl |
||
66 | */ |
||
67 | public function testDowloadFile() |
||
83 | } |
||
84 |
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: