File tree Expand file tree Collapse file tree
tests/Unit/Property/Selector Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ public function setValueThrowsExceptionWithInvalidValue(string $value): void
214214 *
215215 * @dataProvider provideValidValue
216216 */
217- public function getValueReturnsValueProvided (string $ value ): void
217+ public function getValueReturnsValueProvidedToConstructor (string $ value ): void
218218 {
219219 $ subject = new Combinator ($ value );
220220
@@ -223,6 +223,23 @@ public function getValueReturnsValueProvided(string $value): void
223223 self ::assertSame ($ value , $ result );
224224 }
225225
226+ /**
227+ * @test
228+ *
229+ * @param ' '|'>'|'+'|'~' $value
230+ *
231+ * @dataProvider provideValidValue
232+ */
233+ public function getValueReturnsValueProvidedToSetValue (string $ value ): void
234+ {
235+ $ subject = new Combinator ('> ' );
236+ $ subject ->setValue ($ value );
237+
238+ $ result = $ subject ->getValue ();
239+
240+ self ::assertSame ($ value , $ result );
241+ }
242+
226243 /**
227244 * @test
228245 *
You can’t perform that action at this time.
0 commit comments