* Tests which involve interaction between the client and the server.
/**
* Tests which involve interaction between the client and the server.
@@ -30,6+32,9 @@ class LocalhostTest extends PhpXmlRpc_PolyfillTestCase
protected $collectCodeCoverageInformation;
protected $coverageScriptUrl;
protected $collectCodeCoverageInformation;
protected $coverageScriptUrl;
+ /**
+ * @todo instead of overriding fail via _fail, implement Yoast\PHPUnitPolyfills\TestListeners\TestListenerDefaultImplementation
+ */
public static function _fail($message = '')
{
// save in a static var that this particular test has failed
public static function _fail($message = '')
{
// save in a static var that this particular test has failed
@@ -54,6+59,8 @@ class LocalhostTest extends PhpXmlRpc_PolyfillTestCase
* @param TestResult $result
* @return TestResult
* @throws Exception
* @param TestResult $result
* @return TestResult
* @throws Exception
+ *
+ * @todo instead of overriding run via _run, try to achieve this by implementing Yoast\PHPUnitPolyfills\TestListeners\TestListenerDefaultImplementation
*/
public function _run($result = NULL)
{
*/
public function _run($result = NULL)
{
@@ -68,7+75,7 @@ class LocalhostTest extends PhpXmlRpc_PolyfillTestCase
parent::_run($result);
if ($this->collectCodeCoverageInformation) {
parent::_run($result);
if ($this->collectCodeCoverageInformation) {
- $coverage = new PHPUnit_Extensions_SeleniumCommon_RemoteCoverage(
+ $coverage = new RemoteCoverage(
$this->coverageScriptUrl,
$this->testId
);
$this->coverageScriptUrl,
$this->testId
);
@@ -110,8+117,8 @@ class LocalhostTest extends PhpXmlRpc_PolyfillTestCase
return;
$out = ob_get_clean();
$status = $this->getStatus();
return;
$out = ob_get_clean();
$status = $this->getStatus();
- if ($status == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR