1 | <?php |
||
12 | class FileStorageTest extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var FileStorage |
||
17 | */ |
||
18 | public $cacheStorage; |
||
19 | |||
20 | /** |
||
21 | * @var |
||
22 | */ |
||
23 | public $testDir; |
||
24 | |||
25 | /** |
||
26 | * |
||
27 | */ |
||
28 | public function setUp() |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | */ |
||
37 | public function testUnwritableDirectory() |
||
42 | |||
43 | /** |
||
44 | * |
||
45 | */ |
||
46 | public function testSet(){ |
||
50 | |||
51 | /** |
||
52 | * |
||
53 | */ |
||
54 | public function testHasNoValue(){ |
||
57 | |||
58 | /** |
||
59 | * |
||
60 | */ |
||
61 | public function testHas(){ |
||
65 | |||
66 | /** |
||
67 | * |
||
68 | */ |
||
69 | public function testHasExpired(){ |
||
73 | |||
74 | /** |
||
75 | * |
||
76 | */ |
||
77 | public function testClear(){ |
||
80 | |||
81 | /** |
||
82 | * |
||
83 | */ |
||
84 | public function testGet(){ |
||
90 | |||
91 | /** |
||
92 | * Clean up any cache files left on system. |
||
93 | */ |
||
94 | public function tearDown() |
||
103 | |||
104 | } |
||
105 |
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: