-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e970f0
commit 8802859
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Spatie\Dns\Test\Records; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Spatie\Dns\Records\A; | ||
use Spatie\Dns\Records\Record; | ||
|
||
class RecordTest extends TestCase | ||
{ | ||
/** @test */ | ||
public function a_record_is_macroable() | ||
{ | ||
Record::macro('ping', fn() => 'pong'); | ||
|
||
$record = A::parse('spatie.be. 900 IN A 138.197.187.74'); | ||
|
||
$this->assertEquals('pong', $record->ping()); | ||
} | ||
} |
8802859
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mr @freekmurze, can you please help us start giving most of your commits some meaningful title 🙏?
Thank you for being a saviour to the community.