Exemple #1
0
 /**
  * @covers mychaelstyle\utils\Net::getRemoteHost
  */
 public function testGetRemoteHost()
 {
     $result = Net::getRemoteHost();
     $this->assertEmpty($result);
     Net::clear();
     // REMOTE_HOSTのみ
     $expected = 'localhost';
     $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
     $result = Net::getRemoteHost();
     $this->assertEquals($expected, $result);
     Net::clear();
     // Remove the following lines when you implement this test.
     $this->markTestIncomplete('This test has not been implemented yet.');
 }