You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
397 B
PHP
17 lines
397 B
PHP
<?php
|
|
// Copyright 1999-2021. Plesk International GmbH.
|
|
|
|
namespace PleskXTest;
|
|
|
|
class IpTest extends TestCase
|
|
{
|
|
public function testGet()
|
|
{
|
|
$ips = static::$_client->ip()->get();
|
|
$this->assertGreaterThan(0, count($ips));
|
|
|
|
$ip = reset($ips);
|
|
$this->assertMatchesRegularExpression('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $ip->ipAddress);
|
|
}
|
|
}
|