We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d7f732 commit 345a0c5Copy full SHA for 345a0c5
tests/OptionalTest.php
@@ -90,4 +90,27 @@ public function itHandlesValueCallbacks()
90
);
91
});
92
}
93
+
94
+ /**
95
+ * @test
96
+ *
97
+ * @return void
98
+ */
99
+ public function itSquashesNestedOptionals()
100
+ {
101
+ $optional = new Optional(
102
+ new Optional(
103
104
105
+ "hello world"
106
+ )
107
108
109
+ );
110
111
+ $this->assertEquals(
112
+ "hello world",
113
+ $optional->value()
114
115
+ }
116
0 commit comments