1 | <?php |
||
14 | class CollectionDescriptorTest extends \Mockery\Adapter\Phpunit\MockeryTestCase |
||
15 | { |
||
16 | /** @var CollectionDescriptor */ |
||
17 | private $fixture; |
||
18 | |||
19 | /** |
||
20 | * Initializes the fixture for this test. |
||
21 | */ |
||
22 | protected function setUp() |
||
26 | |||
27 | /** |
||
28 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::getName |
||
29 | */ |
||
30 | public function testRetrieveNameForBaseTypeWithTypeString() |
||
34 | |||
35 | /** |
||
36 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::getName |
||
37 | */ |
||
38 | public function testRetrieveNameForBaseTypeWithTypeDescriptor() |
||
44 | |||
45 | /** |
||
46 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::getBaseType |
||
47 | */ |
||
48 | public function testRetrieveBaseTypeWithTypeStringReturnsNull() |
||
52 | |||
53 | /** |
||
54 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::getBaseType |
||
55 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::setBaseType |
||
56 | */ |
||
57 | public function testSetAndRetrieveBaseTypeWithTypeDescriptor() |
||
64 | |||
65 | /** |
||
66 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::getTypes |
||
67 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::setTypes |
||
68 | */ |
||
69 | public function testSetAndRetrieveTypes() |
||
76 | |||
77 | /** |
||
78 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::getKeyTypes |
||
79 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::setKeyTypes |
||
80 | */ |
||
81 | public function testSetAndRetrieveKeyTypes() |
||
88 | |||
89 | /** |
||
90 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::__toString |
||
91 | */ |
||
92 | public function testRetrieveCollectionNotationFromObject() |
||
99 | |||
100 | /** |
||
101 | * @covers phpDocumentor\Descriptor\Type\CollectionDescriptor::__toString |
||
102 | */ |
||
103 | public function testRetrieveCollectionNotationFromObjectWithoutKeys() |
||
109 | } |
||
110 |
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: