diff --git a/composer.json b/composer.json index 961801c..8c6a04e 100644 --- a/composer.json +++ b/composer.json @@ -18,14 +18,15 @@ ], "require": { - "php": "^7.1.3|^8.0", - "symfony/framework-bundle": "~3.4|^4.0|^5.0", - "symfony/dependency-injection": "~3.4|^4.0|^5.0", + "php": ">= 7.4", + "symfony/framework-bundle": "^4.0|^5.0|^6.0", + "symfony/dependency-injection": "^4.0|^5.0|^6.0", "michelf/php-markdown": "~1.4" }, "require-dev": { - "symfony/phpunit-bridge": "^4.4.0 || ^5.0", - "symfony/templating": "~3.4|^4.0|^5.0" + "symfony/phpunit-bridge": "^4.4.0 || ^5.0 || ^6.0", + "symfony/templating": "^4.0|^5.0|^6.0", + "phpunit/phpunit": "^9.5" }, "suggest": { "symfony/twig-bundle": "to use the Twig markdown filter", @@ -38,6 +39,12 @@ } }, + "autoload-dev": { + "psr-4": { + "App\\Tests\\": "tests/" + } + }, + "autoload": { "psr-4": { "Knp\\Bundle\\MarkdownBundle\\": "" diff --git a/Tests/EscapingTest.php b/tests/EscapingTest.php similarity index 89% rename from Tests/EscapingTest.php rename to tests/EscapingTest.php index a2d396f..92f49b0 100644 --- a/Tests/EscapingTest.php +++ b/tests/EscapingTest.php @@ -2,13 +2,15 @@ namespace Knp\Bundle\MarkdownBundle\Tests; +use PHPUnit\Framework\TestCase; + use Knp\Bundle\MarkdownBundle\Parser\MarkdownParser as Parser; -class EscapingTest extends \PHPUnit_Framework_TestCase +class EscapingTest extends TestCase { protected $parser; - public function setUp() + public function setUp(): void { $this->parser = new Parser(); } diff --git a/Tests/FeatureTest.php b/tests/FeatureTest.php similarity index 97% rename from Tests/FeatureTest.php rename to tests/FeatureTest.php index 7c0d099..a2291d7 100644 --- a/Tests/FeatureTest.php +++ b/tests/FeatureTest.php @@ -3,8 +3,9 @@ namespace Knp\Bundle\MarkdownBundle\Tests; use Knp\Bundle\MarkdownBundle\Parser\MarkdownParser as Parser; +use PHPUnit\Framework\TestCase; -class FeatureTest extends \PHPUnit_Framework_TestCase +class FeatureTest extends TestCase { public function testParser() { @@ -754,10 +755,10 @@ EOF; // asserting a few things instead of comparing full final HTML // because a few minor things have changed over versions of Michelf // With assertContains(), tests will pass across all versions - $this->assertContains('
That\'s some text with a footnote.assertContains(' And that\'s the footnote. assertStringContainsString(' That\'s some text with a footnote.assertStringContainsString('