Skip to content

Commit 1ef6743

Browse files
JakeQZoliverklee
authored andcommitted
Add additional test that getValue() returns the result of setValue().
1 parent b8375e3 commit 1ef6743

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

tests/Unit/Property/Selector/CombinatorTest.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)