We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 023d067 commit 7aae003Copy full SHA for 7aae003
tests/unit/PseudoTypes/ArrayShapeTest.php
@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+namespace phpDocumentor\Reflection\PseudoTypes;
4
5
+use phpDocumentor\Reflection\PseudoTypes\ArrayShape;
6
+use phpDocumentor\Reflection\PseudoTypes\ArrayShapeItem;
7
+use PHPUnit\Framework\TestCase;
8
9
+class ArrayShapeTest extends TestCase
10
+{
11
+ /**
12
+ * @covers ::getItems
13
+ */
14
+ public function testExposeItems(): void
15
+ {
16
+ $item1 = new ArrayShapeItem('foo', new True_(), false);
17
+ $item2 = new ArrayShapeItem('bar', new False_(), true);
18
19
+ $arrayShape = new ArrayShape($item1, $item2);
20
21
+ $this->assertSame([$item1, $item2], $arrayShape->getItems());
22
+ }
23
+}
0 commit comments