Commit 619018a7 authored by Pascal Luna's avatar Pascal Luna Committed by Fabien Potencier

Fixed WebTestCase compatibility with PHPUnit 6+

parent 916ab5f8
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
"monolog/monolog": "^1.4.1", "monolog/monolog": "^1.4.1",
"symfony/web-link": "^3.3" "symfony/web-link": "^3.3"
}, },
"conflict": {
"phpunit/phpunit": "<4.8.35 || >= 5.0, <5.4.3"
},
"replace": { "replace": {
"silex/api": "self.version", "silex/api": "self.version",
"silex/providers": "self.version" "silex/providers": "self.version"
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
namespace Silex; namespace Silex;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\HttpKernelInterface;
...@@ -19,7 +20,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface; ...@@ -19,7 +20,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface;
* *
* @author Igor Wiedler <igor@wiedler.ch> * @author Igor Wiedler <igor@wiedler.ch>
*/ */
abstract class WebTestCase extends \PHPUnit_Framework_TestCase abstract class WebTestCase extends TestCase
{ {
/** /**
* HttpKernelInterface instance. * HttpKernelInterface instance.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment