diff --git a/.travis.yml b/.travis.yml index c50dd6f7..29a56ceb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,14 @@ language: php php: - - 5.6 - - 7.0 - 7.1 + - 7.3 + - 7.4 - nightly env: - - SYMFONY_VERSION=2.8.* - - SYMFONY_VERSION=3.0.* - - SYMFONY_VERSION=3.3.* - - SYMFONY_VERSION=dev-master + - SYMFONY_VERSION=3.4.* + - SYMFONY_VERSION=4.4.* before_script: - composer self-update @@ -20,4 +18,4 @@ before_script: - ./src/BeSimple/SoapClient/Tests/bin/axis.sh script: - - phpunit --coverage-text + - vendor/bin/phpunit --coverage-text diff --git a/composer.json b/composer.json index c7fc8966..801029da 100644 --- a/composer.json +++ b/composer.json @@ -20,13 +20,13 @@ } ], "require": { - "php": ">=5.5.0", + "php": ">=7.1", "ext-soap": "*", "ext-curl": "*", "ass/xmlsecurity": "~1.0", - "symfony/framework-bundle": "^2.8|^3", - "symfony/twig-bundle": "^2.8|^3", - "zendframework/zend-mime": "2.2.*" + "symfony/framework-bundle": "^3|^4", + "symfony/twig-bundle": "^3|^4", + "laminas/laminas-mime": "2.2.*" }, "replace": { "besimple/soap-bundle": "self.version", @@ -37,9 +37,10 @@ }, "require-dev": { "ext-mcrypt": "*", - "mikey179/vfsStream": "^1.6.5", - "symfony/filesystem": "^2.8|^3", - "symfony/process": "^2.8|^3" + "mikey179/vfsstream": "^1.6.5", + "symfony/filesystem": "^3|^4", + "symfony/process": "^3|^4", + "phpunit/phpunit": "^5" }, "autoload": { "psr-0": { "BeSimple\\": "src/" } diff --git a/src/BeSimple/SoapClient/Tests/AbstractWebserverTest.php b/src/BeSimple/SoapClient/Tests/AbstractWebServerTest.php similarity index 72% rename from src/BeSimple/SoapClient/Tests/AbstractWebserverTest.php rename to src/BeSimple/SoapClient/Tests/AbstractWebServerTest.php index a7bc6d48..46414f99 100644 --- a/src/BeSimple/SoapClient/Tests/AbstractWebserverTest.php +++ b/src/BeSimple/SoapClient/Tests/AbstractWebServerTest.php @@ -13,7 +13,7 @@ namespace BeSimple\SoapClient\Tests; use Symfony\Component\Process\PhpExecutableFinder; -use Symfony\Component\Process\ProcessBuilder; +use Symfony\Component\Process\Process; /** * @author francis.besset@gmail.com @@ -21,7 +21,7 @@ abstract class AbstractWebServerTest extends \PHPUnit_Framework_TestCase { /** - * @var ProcessBuilder + * @var Process */ static protected $webserver; static protected $websererPortLength; @@ -33,14 +33,16 @@ public static function setUpBeforeClass() } $phpFinder = new PhpExecutableFinder(); - self::$webserver = ProcessBuilder::create(array( - 'exec', // used exec binary (https://github.com/symfony/symfony/issues/5759) - $phpFinder->find(), - '-S', - sprintf('localhost:%d', WEBSERVER_PORT), - '-t', - __DIR__.DIRECTORY_SEPARATOR.'Fixtures', - ))->getProcess(); + + self::$webserver = new Process( + [ + $phpFinder->find(), + '-S', + sprintf('localhost:%d', WEBSERVER_PORT), + '-t', + __DIR__.DIRECTORY_SEPARATOR.'Fixtures', + ] + ); self::$webserver->start(); usleep(100000); diff --git a/src/BeSimple/SoapCommon/Tests/CacheTest.php b/src/BeSimple/SoapCommon/Tests/CacheTest.php index 291ff42e..307f2d90 100644 --- a/src/BeSimple/SoapCommon/Tests/CacheTest.php +++ b/src/BeSimple/SoapCommon/Tests/CacheTest.php @@ -16,7 +16,7 @@ use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStreamWrapper; -class SoapRequestTest extends \PHPUnit_Framework_TestCase +class CacheTest extends \PHPUnit_Framework_TestCase { public function testSetEnabled() { diff --git a/src/BeSimple/SoapCommon/Tests/Mime/MultiPartTest.php b/src/BeSimple/SoapCommon/Tests/Mime/MultiPartTest.php index fe511904..ba2e1666 100644 --- a/src/BeSimple/SoapCommon/Tests/Mime/MultiPartTest.php +++ b/src/BeSimple/SoapCommon/Tests/Mime/MultiPartTest.php @@ -10,7 +10,7 @@ * with this source code in the file LICENSE. */ -namespace BeSimple\SoapCommon\Tests; +namespace BeSimple\SoapCommon\Tests\Mime; use BeSimple\SoapCommon\Mime\MultiPart; use BeSimple\SoapCommon\Mime\Part; diff --git a/src/BeSimple/SoapCommon/Tests/Mime/ParserTest.php b/src/BeSimple/SoapCommon/Tests/Mime/ParserTest.php index 8ce3a99c..e348c256 100644 --- a/src/BeSimple/SoapCommon/Tests/Mime/ParserTest.php +++ b/src/BeSimple/SoapCommon/Tests/Mime/ParserTest.php @@ -10,7 +10,7 @@ * with this source code in the file LICENSE. */ -namespace BeSimple\SoapCommon\Tests; +namespace BeSimple\SoapCommon\Tests\Mime; use BeSimple\SoapCommon\Mime\MultiPart; use BeSimple\SoapCommon\Mime\Parser; diff --git a/src/BeSimple/SoapCommon/Tests/Mime/PartHeaderTest.php b/src/BeSimple/SoapCommon/Tests/Mime/PartHeaderTest.php index 00e9406f..b9aa3ac2 100644 --- a/src/BeSimple/SoapCommon/Tests/Mime/PartHeaderTest.php +++ b/src/BeSimple/SoapCommon/Tests/Mime/PartHeaderTest.php @@ -10,7 +10,7 @@ * with this source code in the file LICENSE. */ -namespace BeSimple\SoapCommon\Tests; +namespace BeSimple\SoapCommon\Tests\Mime; use BeSimple\SoapCommon\Mime\PartHeader; use BeSimple\SoapCommon\Tests\Fixtures\MimePartHeader; diff --git a/src/BeSimple/SoapCommon/Tests/Mime/PartTest.php b/src/BeSimple/SoapCommon/Tests/Mime/PartTest.php index 21a3d314..2f3a4ac8 100644 --- a/src/BeSimple/SoapCommon/Tests/Mime/PartTest.php +++ b/src/BeSimple/SoapCommon/Tests/Mime/PartTest.php @@ -10,7 +10,7 @@ * with this source code in the file LICENSE. */ -namespace BeSimple\SoapCommon\Tests; +namespace BeSimple\SoapCommon\Tests\Mime; use BeSimple\SoapCommon\Mime\Part; use BeSimple\SoapCommon\Mime\PartHeader;