Axis and SoapServer interop tests
This commit is contained in:
29
src/BeSimple/SoapClient/Tests/ServerInterop/TestCase.php
Normal file
29
src/BeSimple/SoapClient/Tests/ServerInterop/TestCase.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace BeSimple\SoapClient\Tests\ServerInterop;
|
||||
|
||||
class TestCase extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '5.3.0', '=')) {
|
||||
$this->markTestSkipped(
|
||||
'The PHP cli webserver is not available with PHP 5.3.'
|
||||
);
|
||||
}
|
||||
|
||||
$ch = curl_init('http://localhost:8081/');
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
|
||||
curl_setopt($ch, CURLOPT_HEADER, true);
|
||||
curl_setopt($ch, CURLOPT_NOBODY, true);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
if (curl_exec($ch) === false) {
|
||||
$this->markTestSkipped(
|
||||
'The PHP webserver is not started on port 8081.'
|
||||
);
|
||||
}
|
||||
|
||||
curl_close($ch);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user