Skip to content

Commit

Permalink
Merge pull request #111 from W0rma/phpunit10
Browse files Browse the repository at this point in the history
Bump PHPUnit version to 10
  • Loading branch information
goetas authored Nov 4, 2024
2 parents d00ab70 + ddcca5e commit 5396b1c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
3 changes: 2 additions & 1 deletion Tests/DependencyInjection/BazingaHateoasExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Bazinga\Bundle\HateoasBundle\Tests\Fixtures\SimpleObjectAnnotationAndAttribute;
use Doctrine\Common\Annotations\AnnotationReader;
use JMS\SerializerBundle\JMSSerializerBundle;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
Expand All @@ -30,7 +31,7 @@ public function tearDown(): void
$this->clearTempDir();
}

/** @dataProvider getTestLoadData */
#[DataProvider('getTestLoadData')]
public function testLoad($object)
{
$container = $this->getContainerForConfig([[]]);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"require-dev": {
"doctrine/annotations": "^1.13.2 || ^2.0",
"doctrine/coding-standard": "^12.0",
"phpunit/phpunit": "^9.5.10",
"phpunit/phpunit": "^10.5.38",
"symfony/stopwatch": "~3.0 || ~4.0 || ~5.0 || ~6.0 || ~7.0",
"twig/twig": "~1.12|~2.0|~3.0"
},
Expand Down
53 changes: 26 additions & 27 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="./Tests/bootstrap.php"
>

<testsuites>
<testsuite name="BazingaHateoasBundle Test Suite">
<directory>./Tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>.</directory>
<exclude>
<directory>Resources</directory>
<directory>Tests</directory>
<directory>vendor</directory>
</exclude>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupGlobals="false"
colors="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="./Tests/bootstrap.php"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="BazingaHateoasBundle Test Suite">
<directory>./Tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>.</directory>
</include>
<exclude>
<directory>Resources</directory>
<directory>Tests</directory>
<directory>vendor</directory>
</exclude>
</source>
</phpunit>

0 comments on commit 5396b1c

Please sign in to comment.