1 | <?php |
||
6 | class AbstractWebClientTest extends TestCase |
||
7 | { |
||
8 | /** |
||
9 | * @var MockWebClient |
||
10 | */ |
||
11 | private $subject; |
||
12 | |||
13 | protected function setUp() |
||
19 | |||
20 | /** |
||
21 | * @test |
||
22 | */ |
||
23 | public function match_WithValidValue() |
||
32 | |||
33 | /** |
||
34 | * @test |
||
35 | */ |
||
36 | public function match_WithInvalidValue() |
||
43 | |||
44 | /** |
||
45 | * @test |
||
46 | */ |
||
47 | public function isNameEquals_WithVaildStringValue() |
||
52 | |||
53 | /** |
||
54 | * @test |
||
55 | */ |
||
56 | public function equals_WithValidOperatingSystem() |
||
67 | |||
68 | /** |
||
69 | * @test |
||
70 | * @expectedException \InvalidArgumentException |
||
71 | */ |
||
72 | public function equals_ThorwsInvalidArgumentException() |
||
76 | |||
77 | /** |
||
78 | * @test |
||
79 | * @depends match_WithValidValue |
||
80 | */ |
||
81 | public function getVersion() |
||
89 | |||
90 | /** |
||
91 | * @test |
||
92 | * @depends getVersion |
||
93 | */ |
||
94 | public function isVersionEquals_WithValidVersion() |
||
102 | |||
103 | /** |
||
104 | * @test |
||
105 | * @depends getVersion |
||
106 | */ |
||
107 | public function isVersionEquals_WithInvalidVersion() |
||
115 | |||
116 | /** |
||
117 | * @test |
||
118 | * @depends getVersion |
||
119 | */ |
||
120 | public function isVersionBetween_WithValidVersions() |
||
128 | |||
129 | /** |
||
130 | * @test |
||
131 | * @depends getVersion |
||
132 | */ |
||
133 | public function isVersionBetween_WithInvalidVersions() |
||
141 | } |
||
142 |
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: