1 | <?php |
||
6 | class AbstractOperatingSystemTest extends TestCase |
||
7 | { |
||
8 | /** |
||
9 | * |
||
10 | * @var MockOperatingSystem |
||
11 | */ |
||
12 | private $subject; |
||
13 | |||
14 | protected function setUp() |
||
20 | |||
21 | /** |
||
22 | * @test |
||
23 | */ |
||
24 | public function match_WithValidValue() |
||
33 | |||
34 | /** |
||
35 | * @test |
||
36 | */ |
||
37 | public function match_WithInvalidValue() |
||
44 | |||
45 | /** |
||
46 | * @test |
||
47 | */ |
||
48 | public function equals_WithValidStringValue() |
||
53 | |||
54 | /** |
||
55 | * @test |
||
56 | */ |
||
57 | public function equals_WithInvalidStringValue() |
||
62 | |||
63 | /** |
||
64 | * @test |
||
65 | */ |
||
66 | public function equals_WithValidOperatingSystem() |
||
77 | |||
78 | /** |
||
79 | * @test |
||
80 | * @expectedException \InvalidArgumentException |
||
81 | */ |
||
82 | public function equals_ThorwsInvalidArgumentException() |
||
86 | } |
||
87 |
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: