Skip to content

Commit 3753e30

Browse files
wip: 5.x
1 parent 8c91766 commit 3753e30

25 files changed

+16
-842
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ jobs:
1717
symfony-version: ['^6.4']
1818
phpunit-version: ['^9.6']
1919
include:
20-
- php-version: 8.0
21-
symfony-version: "^5.4"
20+
- php-version: 8.1
21+
symfony-version: "^6.4"
2222
phpunit-version: '^9.6'
2323
composer-flags: "--prefer-lowest"
24-
- php-version: 8.1
25-
symfony-version: "^5.4"
26-
phpunit-version: "^10.0"
2724
- php-version: 8.1
2825
symfony-version: "^6.4"
2926
phpunit-version: "^10.0"
@@ -98,11 +95,6 @@ jobs:
9895
symfony/yaml=${{ matrix.symfony-version }}
9996
phpunit/phpunit=${{ matrix.phpunit-version }}
10097
101-
# This is needed to fix builds where the `annotation_reader` service may not be set up if
102-
# the doctrine/annotations package is not in the production dependencies
103-
- name: Move doctrine/annotations v1/v2 to require (non-dev) for PHP 8+
104-
run: composer require --no-update "doctrine/annotations:^1.8.0|^2.0"
105-
10698
- name: Install Composer dependencies
10799
if: matrix.composer-flags == ''
108100
run: composer install

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Documentation
1515
* [Basic usage](doc/basic.md)
1616
* [Command test](doc/command.md)
1717
* [Logged client](doc/logged.md)
18-
* [Query counter](doc/query.md)
1918
* [Examples](doc/examples.md)
2019
* [Caveats](doc/caveats.md)
2120
* [Contributing](doc/contributing.md)

composer.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,29 @@
1717
"require": {
1818
"php": "^8.0",
1919
"phpunit/phpunit": "^9.6 || ^10.0 || ^11.0 || ^12.0",
20-
"symfony/browser-kit": "^5.4 || ^6.4 || ^7.0 || ^8.0",
21-
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0 || ^8.0"
20+
"symfony/browser-kit": "^6.4 || ^7.0 || ^8.0",
21+
"symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0"
2222
},
2323
"require-dev": {
2424
"ext-json": "*",
25-
"doctrine/annotations": "^1.3 || ^2.0",
2625
"doctrine/doctrine-bundle": "^2.11 || ^3.1.0",
2726
"doctrine/orm": "^2.7 || ^3.0",
2827
"monolog/monolog": "^1.25.1 || ^2.0 || ^3.0",
29-
"symfony/css-selector": "^5.4 || ^6.4 || ^7.0 || ^8.0",
30-
"symfony/doctrine-bridge": "^5.4 || ^6.4 || ^7.0 || ^8.0",
31-
"symfony/form": "^5.4 || ^6.4 || ^7.0 || ^8.0",
32-
"symfony/http-kernel": "^5.4 || ^6.4 || ^7.0 || ^8.0",
28+
"symfony/css-selector": "^6.4 || ^7.0 || ^8.0",
29+
"symfony/doctrine-bridge": "^6.4 || ^7.0 || ^8.0",
30+
"symfony/form": "^6.4 || ^7.0 || ^8.0",
31+
"symfony/http-kernel": "^6.4 || ^7.0 || ^8.0",
3332
"symfony/monolog-bundle": "^3.4 || ^4.0",
34-
"symfony/security-bundle": "^5.4 || ^6.4 || ^7.0 || ^8.0",
35-
"symfony/twig-bundle": "^5.4 || ^6.4 || ^7.0 || ^8.0",
36-
"symfony/validator": "^5.4 || ^6.4 || ^7.0 || ^8.0",
37-
"symfony/yaml": "^5.4 || ^6.4 || ^7.0 || ^8.0",
33+
"symfony/security-bundle": "^6.4 || ^7.0 || ^8.0",
34+
"symfony/twig-bundle": "^6.4 || ^7.0 || ^8.0",
35+
"symfony/validator": "^6.4 || ^7.0 || ^8.0",
36+
"symfony/yaml": "^6.4 || ^7.0 || ^8.0",
3837
"twig/twig": "^2.0 || ^3.8"
3938
},
4039
"conflict": {
4140
"symfony/framework-bundle": "4.3.0"
4241
},
4342
"suggest": {
44-
"doctrine/annotations": "Required to use the @QueryCount(…) annotation",
4543
"liip/test-fixtures-bundle": "Efficient loading of Doctrine fixtures in functional test-cases for Symfony applications"
4644
},
4745
"autoload": {
@@ -59,7 +57,7 @@
5957
},
6058
"extra": {
6159
"branch-alias": {
62-
"dev-master": "4.x-dev"
60+
"dev-master": "5.x-dev"
6361
}
6462
},
6563
"scripts": {

doc/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ class ExampleFunctionalTest extends WebTestCase
103103
}
104104
```
105105

106-
[Query counter](./query.md)[Caveats](./caveats.md)
106+
[Examples](./examples.md)[Caveats](./caveats.md)

doc/logged.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ security:
9595

9696
For more details, you can check the implementation of `WebTestCase` in that bundle.
9797

98-
← [Command test](./command.md) • [Query counter](./query.md) →
98+
← [Command test](./command.md) • [Examples](./examples.md) →

doc/query.md

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/Annotations/QueryCount.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/DependencyInjection/Compiler/SetTestClientPass.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ public function getConfigTreeBuilder(): TreeBuilder
3636
->children()
3737
->scalarNode('command_verbosity')->defaultValue('normal')->end()
3838
->booleanNode('command_decoration')->defaultTrue()->end()
39-
->arrayNode('query')
40-
->addDefaultsIfNotSet()
41-
->children()
42-
->scalarNode('max_query_count')
43-
->defaultNull()
44-
->end()
45-
->end()
46-
->end()
4739
->arrayNode('authentication')
4840
->addDefaultsIfNotSet()
4941
->children()

src/DependencyInjection/LiipFunctionalTestExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function load(array $configs, ContainerBuilder $container): void
3535
}
3636

3737
foreach ($config as $key => $value) {
38+
// TODO: cleanup
3839
// If the node is an array,
3940
// e.g. "liip_functional_test.query.max_query_count",
4041
// set the value as
@@ -50,8 +51,5 @@ public function load(array $configs, ContainerBuilder $container): void
5051
$container->setParameter($this->getAlias().'.'.$key, $value);
5152
}
5253
}
53-
54-
$definition = $container->getDefinition('liip_functional_test.query.count_client');
55-
$definition->setShared(false);
5654
}
5755
}

0 commit comments

Comments
 (0)