Skip to content

Commit

Permalink
Add test for non-subordinate FQDNs
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Feb 23, 2025
1 parent 6e7594e commit 5278c17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Fields/FQDNTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public function testMakeRelative(){
self::assertSame(['www','example','com'],(new FQDN('www','example','com','example','com',''))->makeRelative($origin,true)->getValue());
self::assertSame(['www'],(new FQDN('www','example','com',''))->makeRelative($origin,true)->getValue());
self::assertSame(['www','example','com'],(new FQDN('www','example','com'))->makeRelative($origin,true)->getValue());

self::assertSame(['www','example','net',''],(new FQDN('www','example','net',''))->makeRelative($origin,true)->getValue());
}

/**
Expand Down

0 comments on commit 5278c17

Please sign in to comment.