public function testDomainTransferQuery()
 {
     $frame = new TransferDomain();
     $frame->setOperation('query');
     $frame->setDomain('google.com');
     $frame->setAuthInfo('password');
     $this->assertXmlStringEqualsXmlString((string) $frame, '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
         <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
           <command>
             <transfer op="query">
               <domain:transfer xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
                 <domain:name>google.com</domain:name>
                 <domain:authInfo>
                   <domain:pw>password</domain:pw>
                 </domain:authInfo>
               </domain:transfer>
             </transfer>
           </command>
         </epp>');
 }
Exemple #2
0
<?php

// debug
error_reporting(E_ALL);
ini_set('display_errors', true);
chdir(__DIR__);
require '../src/AfriCC/autoload.php';
use AfriCC\EPP\Frame\Command\Transfer\Domain as TransferDomain;
$frame = new TransferDomain();
$frame->setOperation('query');
$frame->setDomain('google.com');
$frame->setAuthInfo('password');
echo $frame;
Exemple #3
0
<?php

// debug
error_reporting(E_ALL);
ini_set('display_errors', true);
chdir(__DIR__);
require '../src/AfriCC/autoload.php';
use AfriCC\EPP\Frame\Command\Transfer\Domain as TransferDomain;
$frame = new TransferDomain();
$frame->setOperation('cancel');
$frame->setDomain('google.com');
$frame->setPeriod('6y');
$frame->setAuthInfo('password', 'REP-REP-YEP');
echo $frame;