Skip to content

Commit

Permalink
Merge pull request #57 from trompette/upgrade-phpunit
Browse files Browse the repository at this point in the history
Upgrade PHPUnit
  • Loading branch information
trompette committed Mar 25, 2024
2 parents 7e2563f + 24afc11 commit 350b51e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"require-dev": {
"ext-sqlite3": "*",
"doctrine/orm": ">=2.19",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^10.5",
"phpspec/prophecy-phpunit": "^2.0",
"symfony/dependency-injection": ">=5.4",
"symfony/http-kernel": ">=5.4",
Expand Down
19 changes: 9 additions & 10 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheResult="false"
colors="true"
convertDeprecationsToExceptions="true"
testdox="true">
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="all">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="all">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use PHPUnit\Framework\TestCase;
use Trompette\FeatureToggles\DBAL\SchemaMigrator;

abstract class ConfigurationRepositoryTest extends TestCase
abstract class ConfigurationRepositoryTestCase extends TestCase
{
protected Connection $connection;
protected SchemaMigrator $repository;
Expand Down
2 changes: 1 addition & 1 deletion tests/DBAL/OnOffStrategyConfigurationRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* @property OnOffStrategyConfigurationRepository $repository
*/
class OnOffStrategyConfigurationRepositoryTest extends ConfigurationRepositoryTest
class OnOffStrategyConfigurationRepositoryTest extends ConfigurationRepositoryTestCase
{
protected function createRepository(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* @property PercentageStrategyConfigurationRepository $repository
*/
class PercentageStrategyConfigurationRepositoryTest extends ConfigurationRepositoryTest
class PercentageStrategyConfigurationRepositoryTest extends ConfigurationRepositoryTestCase
{
protected function createRepository(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* @property WhitelistStrategyConfigurationRepository $repository
*/
class WhitelistStrategyConfigurationRepositoryTest extends ConfigurationRepositoryTest
class WhitelistStrategyConfigurationRepositoryTest extends ConfigurationRepositoryTestCase
{
protected function createRepository(): void
{
Expand Down

0 comments on commit 350b51e

Please sign in to comment.