1 | <?php |
||
14 | class AbstractCacheTest extends \PHPUnit_Framework_TestCase |
||
15 | { |
||
16 | /** |
||
17 | * @var Cache |
||
18 | */ |
||
19 | public $cache; |
||
20 | |||
21 | /** |
||
22 | * @var CacheStorageInterface |
||
23 | */ |
||
24 | public $storageMock; |
||
25 | |||
26 | /** |
||
27 | * Using AbstractCacheMock to extend abstract class. |
||
28 | */ |
||
29 | public function setUp() |
||
34 | |||
35 | /** |
||
36 | * Test that NullStorage Adaptor is called by default. |
||
37 | */ |
||
38 | public function testConstructNullStorage(){ |
||
43 | |||
44 | /** |
||
45 | * Test CacheStorage is updated from construct. |
||
46 | */ |
||
47 | public function testConstructWithStorage(){ |
||
52 | |||
53 | /** |
||
54 | * Test that Cache::withCacheStorage() updates CacheStorageInterface adaptor. |
||
55 | */ |
||
56 | public function testWithCacheStorage() |
||
62 | |||
63 | /** |
||
64 | * Test that CacheStorageInterface is returned from Cache::getCacheStorage |
||
65 | */ |
||
66 | public function testGetCacheStorage() |
||
72 | } |
||
73 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..