test nitpicks
authorgggeek <giunta.gaetano@gmail.com>
Fri, 27 Jan 2023 10:04:13 +0000 (10:04 +0000)
committergggeek <giunta.gaetano@gmail.com>
Fri, 27 Jan 2023 10:04:13 +0000 (10:04 +0000)
tests/02ValueTest.php
tests/03MessagesTest.php
tests/04ParsingTest.php
tests/06EncoderTest.php
tests/07ClientTest.php
tests/LoggerAwareTestCase.php [moved from tests/LogAwareTestCase.php with 94% similarity]
tests/PolyfillTestCase7.php
tests/PolyfillTestCase8.php
tests/ServerAwareTestCase.php

index 73ba4b7..9aa505f 100644 (file)
@@ -1,12 +1,12 @@
 <?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()
     {
index cb4a70b..6671293 100644 (file)
@@ -1,11 +1,11 @@
 <?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()
     {
index 50b2fe4..1911c9d 100644 (file)
@@ -1,13 +1,13 @@
 <?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())
     {
index 568256b..bb5c02b 100644 (file)
@@ -1,6 +1,6 @@
 <?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).
@@ -8,7 +8,7 @@ include_once __DIR__ . '/LogAwareTestCase.php';
  * @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()
     {
index 6faac33..c7107ed 100644 (file)
@@ -1,11 +1,11 @@
 <?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;
similarity index 94%
rename from tests/LogAwareTestCase.php
rename to tests/LoggerAwareTestCase.php
index d0dec6c..4c3051e 100644 (file)
@@ -9,7 +9,7 @@ include_once __DIR__ . '/PolyfillTestCase.php';
 
 use PHPUnit\Runner\BaseTestRunner;
 
-abstract class PhpXmlRpc_LogAwareTestCase extends PhpXmlRpc_PolyfillTestCase
+abstract class PhpXmlRpc_LoggerAwareTestCase extends PhpXmlRpc_PolyfillTestCase
 {
     protected $args = array();
 
index 112f606..9212512 100644 (file)
@@ -2,6 +2,7 @@
 
 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) {
index 5c8711a..a7fceca 100644 (file)
@@ -3,6 +3,7 @@
 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) {
index 02bbb26..d663383 100644 (file)
@@ -1,11 +1,11 @@
 <?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;