assertSame($expected, (new IpAddress($input))->getSubnet()); } public function testToString(): void { $this->assertSame('127.0.0.1', (string)(new IpAddress('127.0.0.1'))); } }