Skip to content

Commit

Permalink
Add test for reading null
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Aug 8, 2024
1 parent 20ef831 commit f9b8136
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/EPPConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ public function open(): bool{
public function testTCPConnection(){
$registry = new SIDNTest;

$conn = new class($registry) extends EPPTCPConnection{

protected function readLength(): int{
return -1;
}

};

$this->assertNull($conn->readXML());

$conn = new EPPTCPConnection($registry);
$this->assertNotNull($conn);

Expand Down

0 comments on commit f9b8136

Please sign in to comment.