Skip to content

Commit b61bd50

Browse files
committed
Add test for construction with empty string
1 parent bf874f7 commit b61bd50

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/Unit/Property/SelectorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,16 @@ public function parseExtractsTwoCommentsFromSelector(): void
319319
* @test
320320
*/
321321
public function canConstructObjectWithEmptyState(): void
322+
{
323+
$subject = new Selector();
324+
325+
self::assertSame('', $subject->getSelector());
326+
}
327+
328+
/**
329+
* @test
330+
*/
331+
public function constructsObjectWithEmptyStateWithEmptyStringProvided(): void
322332
{
323333
$subject = new Selector('');
324334

0 commit comments

Comments
 (0)