Ejemplo n.º 1
0
 /**
  * @see TransactionEntity::setIpAddress()
  */
 public function testSetIpAddress()
 {
     $ipAddress = rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254);
     $rs = $this->object->setIpAddress($ipAddress);
     $this->assertInstanceOf('\\PayU\\Entity\\Transaction\\TransactionEntity', $rs);
     $rs = $this->object->getIpAddress();
     $this->assertInternalType('string', $rs);
     $this->assertEquals($ipAddress, $rs);
 }