<?php
-include_once __DIR__ . '/LogAwareTestCase.php';
+include_once __DIR__ . '/LoggerAwareTestCase.php';
/**
* Tests involving the Value class.
* NB: these tests do not involve the parsing of xml into Value objects - look in 03ParsingTest for that
*/
-class ValueTest extends PhpXmlRpc_LogAwareTestCase
+class ValueTest extends PhpXmlRpc_LoggerAwareTestCase
{
public function testMinusOneString()
{
<?php
-include_once __DIR__ . '/LogAwareTestCase.php';
+include_once __DIR__ . '/LoggerAwareTestCase.php';
/**
* Tests involving Requests and Responses, except for the parsing part
*/
-class MessagesTest extends PhpXmlRpc_LogAwareTestCase
+class MessagesTest extends PhpXmlRpc_LoggerAwareTestCase
{
public function testSerializePHPValResponse()
{
<?php
-include_once __DIR__ . '/LogAwareTestCase.php';
+include_once __DIR__ . '/LoggerAwareTestCase.php';
/**
* Tests involving xml parsing.
*
* @todo some tests are here even though they logically belong elsewhere...
*/
-class ParsingTest extends PhpXmlRpc_LogAwareTestCase
+class ParsingTest extends PhpXmlRpc_LoggerAwareTestCase
{
protected function newRequest($methodName, $params = array())
{
<?php
-include_once __DIR__ . '/LogAwareTestCase.php';
+include_once __DIR__ . '/LoggerAwareTestCase.php';
/**
* Tests involving automatic encoding/decoding of php values into xmlrpc values (the Encoder class).
* @todo add tests for encoding options: 'encode_php_objs', 'auto_dates', 'null_extension' and 'extension_api'
* @todo add tests for php_xmlrpc_decode options
*/
-class EncoderTest extends PhpXmlRpc_LogAwareTestCase
+class EncoderTest extends PhpXmlRpc_LoggerAwareTestCase
{
public function testEncodeArray()
{
<?php
-include_once __DIR__ . '/LogAwareTestCase.php';
+include_once __DIR__ . '/LoggerAwareTestCase.php';
/**
* Tests involving the Client class (and no server).
*/
-class ClientTes extends PhpXmlRpc_LogAwareTestCase
+class ClientTes extends PhpXmlRpc_LoggerAwareTestCase
{
/** @var xmlrpc_client $client */
public $client = null;
use PHPUnit\Runner\BaseTestRunner;
-abstract class PhpXmlRpc_LogAwareTestCase extends PhpXmlRpc_PolyfillTestCase
+abstract class PhpXmlRpc_LoggerAwareTestCase extends PhpXmlRpc_PolyfillTestCase
{
protected $args = array();
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
+// allow hooking code to run within `run` and `fail` via defining `_run` and `_fail` in subclasses
abstract class PhpXmlRpc_PolyfillTestCase extends TestCase
{
public function _run($result = null) {
use PHPUnit\Framework\TestResult as PHPUnit_Framework_TestResult;
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
+// allow hooking code to run within `run` and `fail` via defining `_run` and `_fail` in subclasses
abstract class PhpXmlRpc_PolyfillTestCase extends TestCase
{
public function _run($result = null) {
<?php
-include_once __DIR__ . '/LogAwareTestCase.php';
+include_once __DIR__ . '/LoggerAwareTestCase.php';
use PHPUnit\Extensions\SeleniumCommon\RemoteCoverage;
use PHPUnit\Framework\TestResult;
-abstract class PhpXmlRpc_ServerAwareTestCase extends PhpXmlRpc_LogAwareTestCase
+abstract class PhpXmlRpc_ServerAwareTestCase extends PhpXmlRpc_LoggerAwareTestCase
{
/** @var string */
protected $baseUrl;