File tree 8 files changed +28
-25
lines changed
8 files changed +28
-25
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,17 @@ jobs:
28
28
fail-fast : false
29
29
matrix :
30
30
include :
31
- - description : ' No Symfony specified'
32
- php : ' 8.0'
33
31
- description : ' No Symfony specified'
34
32
php : ' 8.1'
35
33
- description : ' No Symfony specified'
36
34
php : ' 8.2'
37
35
- description : ' No Symfony specified'
38
36
php : ' 8.3'
39
37
- description : ' Lowest deps'
40
- php : ' 8.0 '
38
+ php : ' 8.1 '
41
39
composer_option : ' --prefer-lowest'
42
40
- description : ' Symfony 5.4'
43
- php : ' 8.0 '
41
+ php : ' 8.1 '
44
42
symfony : 5.4.*
45
43
- description : ' Symfony 7'
46
44
php : ' 8.2'
Original file line number Diff line number Diff line change 1
- ## 3.3.0 (2023-05-xx)
1
+ ## 3.4.0 (2024-xx-xx)
2
+
3
+ * Increased minimum PHP version to 8.1 (to be consistent with KnpMenu 3.5)
4
+
5
+ ## 3.3.0 (2023-10-23)
2
6
3
7
* Increased minimum PHP version to 8.0 (to be consistent with KnpMenu 3.4)
4
8
* Dropped support for Symfony 3 and 4
Original file line number Diff line number Diff line change 19
19
}
20
20
],
21
21
"require" : {
22
- "php" : " ^8.0 " ,
22
+ "php" : " ^8.1 " ,
23
23
"knplabs/knp-menu" : " ^3.3" ,
24
24
"symfony/deprecation-contracts" : " ^2.5 | ^3.3" ,
25
25
"symfony/framework-bundle" : " ^5.4 | ^6.0 | ^7.0"
26
26
},
27
27
"require-dev" : {
28
- "phpunit/phpunit" : " ^9.6 | ^10.1 " ,
28
+ "phpunit/phpunit" : " ^10.5 | ^11.0.3 " ,
29
29
"symfony/expression-language" : " ^5.4 | ^6.0 | ^7.0" ,
30
30
"symfony/phpunit-bridge" : " ^6.0 | ^7.0" ,
31
31
"symfony/templating" : " ^5.4 | ^6.0 | ^7.0"
Original file line number Diff line number Diff line change 2
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
3
colors =" true"
4
4
bootstrap =" vendor/autoload.php"
5
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.6/phpunit.xsd" >
6
- <coverage >
5
+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd" >
6
+
7
+ <testsuites >
8
+ <testsuite name =" KnpMenuBundle Test Suite" >
9
+ <directory >./tests/</directory >
10
+ </testsuite >
11
+ </testsuites >
12
+
13
+ <source >
7
14
<include >
8
15
<directory >./src</directory >
9
16
</include >
10
17
<exclude >
11
18
<directory >./src/Resources</directory >
12
19
</exclude >
13
- </coverage >
14
- <testsuites >
15
- <testsuite name =" KnpMenuBundle Test Suite" >
16
- <directory suffix =" Test.php" >./tests/</directory >
17
- </testsuite >
18
- </testsuites >
20
+ </source >
21
+
19
22
</phpunit >
Original file line number Diff line number Diff line change 4
4
5
5
use Knp \Bundle \MenuBundle \DependencyInjection \Compiler \AddVotersPass ;
6
6
use Knp \Menu \Matcher \Matcher ;
7
+ use PHPUnit \Framework \Attributes \Group ;
7
8
use PHPUnit \Framework \TestCase ;
8
9
use Symfony \Component \DependencyInjection \Argument \IteratorArgument ;
9
10
use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -41,9 +42,7 @@ public function testProcessWithAlias(): void
41
42
);
42
43
}
43
44
44
- /**
45
- * @group legacy
46
- */
45
+ #[Group('legacy ' )]
47
46
public function testProcessRequestAware (): void
48
47
{
49
48
$ containerBuilder = new ContainerBuilder ();
Original file line number Diff line number Diff line change 2
2
3
3
namespace Knp \Bundle \MenuBundle \Tests \DependencyInjection ;
4
4
5
+ use PHPUnit \Framework \Attributes \DataProvider ;
5
6
use PHPUnit \Framework \TestCase ;
6
7
7
8
class ConfigurationTest extends TestCase
8
9
{
9
- /**
10
- * @dataProvider getConfigs
11
- */
10
+ #[DataProvider('getConfigs ' )]
12
11
public function testConfigurationMatchesXsd ($ config ): void
13
12
{
14
13
$ configDom = new \DOMDocument ();
Original file line number Diff line number Diff line change 3
3
namespace Knp \Bundle \MenuBundle \Tests \DependencyInjection ;
4
4
5
5
use Knp \Bundle \MenuBundle \DependencyInjection \KnpMenuExtension ;
6
+ use PHPUnit \Framework \Attributes \Group ;
6
7
use PHPUnit \Framework \TestCase ;
7
8
use Symfony \Component \DependencyInjection \ContainerBuilder ;
8
9
@@ -47,9 +48,7 @@ public function testDisableTwig(): void
47
48
$ this ->assertFalse ($ container ->hasDefinition ('knp_menu.renderer.twig ' ));
48
49
}
49
50
50
- /**
51
- * @group legacy
52
- */
51
+ #[Group('legacy ' )]
53
52
public function testEnablePhpTemplates (): void
54
53
{
55
54
$ container = new ContainerBuilder ();
Original file line number Diff line number Diff line change 4
4
5
5
use Knp \Bundle \MenuBundle \Templating \Helper \MenuHelper ;
6
6
use Knp \Menu \ItemInterface ;
7
+ use PHPUnit \Framework \Attributes \Group ;
7
8
use PHPUnit \Framework \TestCase ;
8
9
9
10
/**
10
11
* Test for MenuHelper class.
11
12
*
12
13
* @author Leszek Prabucki <[email protected] >
13
- * @group legacy
14
14
*/
15
+ #[Group('legacy ' )]
15
16
class MenuHelperTest extends TestCase
16
17
{
17
18
public function testGet (): void
You can’t perform that action at this time.
0 commit comments