1 | <?php |
||
15 | class AbstractCacheTest extends \PHPUnit\Framework\TestCase |
||
16 | { |
||
17 | /** |
||
18 | * @var Cache |
||
19 | */ |
||
20 | public $cache; |
||
21 | |||
22 | /** |
||
23 | * @var \PHPUnit_Framework_MockObject_MockObject |
||
24 | */ |
||
25 | public $storageMock; |
||
26 | |||
27 | /** |
||
28 | * Using AbstractCacheMock to extend abstract class. |
||
29 | */ |
||
30 | public function setUp() |
||
35 | |||
36 | /** |
||
37 | * Test that NullStorage Adaptor is called by default. |
||
38 | */ |
||
39 | public function testConstructNullStorage(){ |
||
44 | |||
45 | /** |
||
46 | * Test CacheStorage is updated from construct. |
||
47 | */ |
||
48 | public function testConstructWithStorage(){ |
||
53 | |||
54 | /** |
||
55 | * Test that Cache::withCacheStorage() updates CacheStorageInterface adaptor. |
||
56 | */ |
||
57 | public function testWithCacheStorage() |
||
63 | |||
64 | /** |
||
65 | * Test that CacheStorageInterface is returned from Cache::getCacheStorage |
||
66 | */ |
||
67 | public function testGetCacheStorage() |
||
73 | } |
||
74 |
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..