1 | <?php |
||
14 | class testMapModel extends TestCase { |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $_center = array( 'lat' => 100.23435532, 'lng' => -100.1234642345325 ); |
||
20 | |||
21 | /** |
||
22 | * @var Map_Model |
||
23 | */ |
||
24 | private $_model; |
||
25 | |||
26 | public function setUp() { |
||
31 | |||
32 | /** |
||
33 | * @covers ::center |
||
34 | */ |
||
35 | public function testCenter() { |
||
40 | |||
41 | /** |
||
42 | * @covers ::markers |
||
43 | */ |
||
44 | public function testMarkers() { |
||
49 | |||
50 | /** |
||
51 | * @depends testMarkers |
||
52 | * @covers ::add_marker |
||
53 | */ |
||
54 | function testAddMarker() { |
||
61 | |||
62 | /** |
||
63 | * @depends testMarkers |
||
64 | * @covers ::add_markers |
||
65 | */ |
||
66 | function testAddMarkers() { |
||
76 | |||
77 | /** |
||
78 | * @covers ::zoom |
||
79 | */ |
||
80 | public function testZoom() { |
||
83 | |||
84 | /** |
||
85 | * @covers ::make_args |
||
86 | */ |
||
87 | public function testMakeArgs() { |
||
102 | |||
103 | /** |
||
104 | * @covers ::height |
||
105 | */ |
||
106 | public function testHeight() { |
||
111 | |||
112 | /** |
||
113 | * @covers ::width |
||
114 | */ |
||
115 | public function testWidth() { |
||
120 | } |
||
121 |
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: