diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2020-07-07 17:31:33 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2020-07-07 17:31:33 +0300 |
commit | 47f0960dce6a2a07428f7e600a4a9815abe8a537 (patch) | |
tree | cabadf19c73933c719204fd9909ccbe411ce8043 /test/classes/IpAllowDenyTest.php | |
parent | e81146e4b38bc6f8ce9163c399b31bcc0e280d6e (diff) |
Add return type declaration to test methods
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test/classes/IpAllowDenyTest.php')
-rw-r--r-- | test/classes/IpAllowDenyTest.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/classes/IpAllowDenyTest.php b/test/classes/IpAllowDenyTest.php index 476e478e61..c63df01f01 100644 --- a/test/classes/IpAllowDenyTest.php +++ b/test/classes/IpAllowDenyTest.php @@ -87,7 +87,7 @@ class IpAllowDenyTest extends AbstractTestCase * * @return array */ - public function proxyIPs() + public function proxyIPs(): array { return [ // Nothing set @@ -132,10 +132,8 @@ class IpAllowDenyTest extends AbstractTestCase /** * Test for ipMaskTest - * - * @return void */ - public function testIpMaskTest() + public function testIpMaskTest(): void { //IPV4 testing $testRange = '255.255.0.0/8'; @@ -200,10 +198,8 @@ class IpAllowDenyTest extends AbstractTestCase /** * Test for allowDeny - * - * @return void */ - public function testAllowDeny() + public function testAllowDeny(): void { $_SERVER['REMOTE_ADDR'] = ''; $this->assertFalse( |