File tree Expand file tree Collapse file tree 6 files changed +22
-9
lines changed
Expand file tree Collapse file tree 6 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 11Change Log
22==========
33
4+ 2025-04-12
5+ ----------
6+
7+ * fix additional deprecations
8+ * switch to PHPUnit 11.X
9+
4102024-12-01
511----------
612
Original file line number Diff line number Diff line change 1919 "symfony/framework-bundle" : " ^6.4|^7.0"
2020 },
2121 "require-dev" : {
22- "phpunit/phpunit" : " ^10 .5" ,
23- "symfony/phpunit-bridge" : " ^6.4 " ,
24- "symfony/stopwatch" : " ^6.4 " ,
25- "symfony/var-dumper" : " ^6.4 " ,
26- "symfony/yaml" : " ^6.4 "
22+ "phpunit/phpunit" : " ^11 .5" ,
23+ "symfony/phpunit-bridge" : " ^7.0 " ,
24+ "symfony/stopwatch" : " ^7.0 " ,
25+ "symfony/var-dumper" : " ^7.0 " ,
26+ "symfony/yaml" : " ^7.0 "
2727 },
2828 "autoload" : {
2929 "psr-4" : {
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
33<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10 .5/phpunit.xsd" backupGlobals =" false" colors =" true"
5- bootstrap =" vendor/autoload .php" cacheDirectory =" .phpunit.cache" >
4+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/11 .5/phpunit.xsd" backupGlobals =" false" colors =" true"
5+ bootstrap =" tests/bootstrap .php" cacheDirectory =" .phpunit.cache" >
66 <php >
77 <ini name =" error_reporting" value =" -1" />
88 <ini name =" memory_limit" value =" 256M" />
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class SomnambulistFractalExtension extends Extension
1212{
1313 public const TRANSFORMER_TAG_NAME = 'somnambulist.fractal_bundle.transformer ' ;
1414
15- public function load (array $ configs , ContainerBuilder $ container )
15+ public function load (array $ configs , ContainerBuilder $ container ): void
1616 {
1717 $ loader = new Loader \XmlFileLoader ($ container , new FileLocator (__DIR__ .'/../Resources/config ' ));
1818 $ loader ->load ('services.xml ' );
Original file line number Diff line number Diff line change 44
55use InvalidArgumentException ;
66use PHPUnit \Framework \TestCase ;
7+ use Somnambulist \Bundles \FractalBundle \Tests \Fixtures \App ;
78use Somnambulist \Bundles \FractalBundle \Tests \Fixtures \Controller \BooksController ;
89use Symfony \Component \HttpFoundation \Request ;
9- use Somnambulist \Bundles \FractalBundle \Tests \Fixtures \App ;
1010
1111class FractalBundleTest extends TestCase
1212{
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+
3+ require_once __DIR__ . '/../vendor/autoload.php ' ;
4+
5+ use Symfony \Component \ErrorHandler \ErrorHandler ;
6+
7+ ErrorHandler::register (null , false );
You can’t perform that action at this time.
0 commit comments