Skip to content

Commit e858d57

Browse files
committed
Updated phpunit to version 7
Revamped eppConnection.php to make sure settingsfile is not read and processed more than once
1 parent 9dddd84 commit e858d57

11 files changed

+839
-606
lines changed

Examples/alternativeconnection.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
require('../autoloader.php');
3+
4+
try {
5+
$conn = new Metaregistrar\EPP\metaregEppConnection();
6+
$conn->setHostname('ssl://eppltest1.metaregistrar.com'); // Hostname may vary depending on the registry selected
7+
$conn->setPort(7000); // Port may vary depending on the registry selected
8+
$conn->setUsername('');
9+
$conn->setPassword('');
10+
// Connect to the EPP server
11+
if ($conn->login()) {
12+
echo "Logged in\n";
13+
$conn->logout();
14+
echo "Logged out\n";
15+
}
16+
} catch (Metaregistrar\EPP\eppException $e) {
17+
echo $e->getMessage() . "\n";
18+
}

Examples/trademarknotice.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
$domain = 'nike';
99
$domainkey = null;
1010
try {
11-
$dnl = new dnlTmchConnection();
12-
$dnl->setConnectionDetails('.');
13-
$cnis = new cnisTmchConnection();
14-
$cnis->setConnectionDetails('');
11+
$dnl = new dnlTmchConnection(true,'');
12+
$cnis = new cnisTmchConnection(true,'');
1513
$list = $dnl->getDnl();
1614
if (count($list)==1) {
1715
echo "empty list received\n";

Protocols/EPP/eppBase.php

-227
This file was deleted.

0 commit comments

Comments
 (0)