Skip to content

Commit

Permalink
Updated phpunit to version 7
Browse files Browse the repository at this point in the history
Revamped eppConnection.php to make sure settingsfile is not read and processed more than once
  • Loading branch information
metaregistrar committed Jan 18, 2019
1 parent 9dddd84 commit e858d57
Show file tree
Hide file tree
Showing 11 changed files with 839 additions and 606 deletions.
18 changes: 18 additions & 0 deletions Examples/alternativeconnection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
require('../autoloader.php');

try {
$conn = new Metaregistrar\EPP\metaregEppConnection();
$conn->setHostname('ssl://eppltest1.metaregistrar.com'); // Hostname may vary depending on the registry selected
$conn->setPort(7000); // Port may vary depending on the registry selected
$conn->setUsername('');
$conn->setPassword('');
// Connect to the EPP server
if ($conn->login()) {
echo "Logged in\n";
$conn->logout();
echo "Logged out\n";
}
} catch (Metaregistrar\EPP\eppException $e) {
echo $e->getMessage() . "\n";
}
6 changes: 2 additions & 4 deletions Examples/trademarknotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
$domain = 'nike';
$domainkey = null;
try {
$dnl = new dnlTmchConnection();
$dnl->setConnectionDetails('.');
$cnis = new cnisTmchConnection();
$cnis->setConnectionDetails('');
$dnl = new dnlTmchConnection(true,'');
$cnis = new cnisTmchConnection(true,'');
$list = $dnl->getDnl();
if (count($list)==1) {
echo "empty list received\n";
Expand Down
227 changes: 0 additions & 227 deletions Protocols/EPP/eppBase.php

This file was deleted.

Loading

0 comments on commit e858d57

Please sign in to comment.