mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
35 lines
678 B
PHP
35 lines
678 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\Utils\Converter;
|
|
|
|
use phpOMS\Utils\Converter\Ip;
|
|
|
|
/**
|
|
* @testdox phpOMS\tests\Utils\Converter\IpTest: IP converter
|
|
*
|
|
* @internal
|
|
*/
|
|
class IpTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
/**
|
|
* @testdox An ip can be converted to a float
|
|
* @covers phpOMS\Utils\Converter\Ip
|
|
*/
|
|
public function testIp() : void
|
|
{
|
|
self::assertTrue(\abs(1527532998.0 - Ip::ip2Float('91.12.77.198')) < 1);
|
|
}
|
|
}
|