\Tests\Unit\NetworkModule\EntitiesIPv4AddressTest

Tests for network connection entity

Summary

Methods
Properties
Constants
__construct()
testFromMask()
testFromPrefix()
testGetAddress()
testGetPrefix()
testGetMask()
testToArray()
testToString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : 

Sets up the test environment

Returns

testFromMask()

testFromMask() : 

Tests the function to create a new entity from IPv4 address and subnet mask

Returns

testFromPrefix()

testFromPrefix() : 

Tests the function to create the entity from IPv4 address with prefix

Returns

testGetAddress()

testGetAddress() : 

Tests the function to get IPv4 address

Returns

testGetPrefix()

testGetPrefix() : 

Tests the function to get IPv4 prefix

Returns

testGetMask()

testGetMask() : 

Tests the function to get IPv4 mask

Returns

testToArray()

testToArray() : 

Tests the function to convert the IPv4 address entity to an array

Returns

testToString()

testToString() : 

Tests the function to convert the IPv4 address entity to a string

Returns