Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Oct 13, 2019
1 parent c9bf04a commit 8af38fd
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -7,6 +7,8 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

use Joomla\Utilities\IpHelper;

require_once __DIR__ . '/stubs/w3c/inspector.php';

/**
Expand Down Expand Up @@ -41,7 +43,7 @@ public function testAddEntry()
'Line: ' . __LINE__
);

$_SERVER['REMOTE_ADDR'] = '192.168.0.1';
IpHelper::setIp('192.168.0.1');

$logger->addEntry(new JLogEntry('Testing 02', JLog::ERROR, null, '1982-12-15'));
$this->assertEquals(
Expand All @@ -50,7 +52,7 @@ public function testAddEntry()
'Line: ' . __LINE__
);

$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
IpHelper::setIp('127.0.0.1');

$logger->addEntry(new JLogEntry('Testing3', JLog::EMERGENCY, 'deprecated', '1980-04-18'));
$this->assertEquals(
Expand Down

0 comments on commit 8af38fd

Please sign in to comment.