1 | <?php |
||
7 | class CacheTest extends \PHPUnit_Framework_TestCase |
||
8 | { |
||
9 | /** |
||
10 | * @var Cache |
||
11 | */ |
||
12 | protected $object; |
||
13 | |||
14 | public function setUp() |
||
18 | |||
19 | public function tearDown() |
||
23 | |||
24 | /** |
||
25 | * @covers Koch\Cache\Cache::instantiate |
||
26 | * @covers Koch\Autoload\Loader::autoload |
||
27 | */ |
||
28 | public function testInstantiate() |
||
33 | |||
34 | /** |
||
35 | * @covers Koch\Cache\Cache::store |
||
36 | * @covers Koch\Cache\Cache::fetch |
||
37 | * @covers Koch\Cache\Cache::contains |
||
38 | * @covers Koch\Cache\Cache::delete |
||
39 | */ |
||
40 | public function testContains() |
||
48 | |||
49 | /** |
||
50 | * @covers Koch\Cache\Cache::clear |
||
51 | */ |
||
52 | public function testClear() |
||
58 | |||
59 | /** |
||
60 | * @covers Koch\Cache\Cache::storeObject |
||
61 | * @covers Koch\Cache\Cache::fetchObject |
||
62 | */ |
||
63 | public function testFetchObject() |
||
76 | } |
||
77 |
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: