File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,25 @@ public function testResolvingArrayCollectionWithKeyAndWhitespace()
176176 $ this ->assertInstanceOf (Types \Compound::class, $ valueType );
177177 }
178178
179+ /**
180+ * @covers ::__construct
181+ * @covers ::resolve
182+ *
183+ * @expectedException \InvalidArgumentException
184+ *
185+ * @uses \phpDocumentor\Reflection\Types\Context
186+ * @uses \phpDocumentor\Reflection\Types\Compound
187+ * @uses \phpDocumentor\Reflection\Types\Collection
188+ * @uses \phpDocumentor\Reflection\Types\String_
189+ */
190+ public function testResolvingArrayCollectionWithKeyAndTooManyWhitespace ()
191+ {
192+ $ fixture = new TypeResolver ();
193+
194+ /** @var Collection $resolvedType */
195+ $ resolvedType = $ fixture ->resolve ('array<string, object|array> ' , new Context ('' ));
196+ }
197+
179198 /**
180199 * @covers ::__construct
181200 * @covers ::resolve
You can’t perform that action at this time.
0 commit comments