8000 Merge branch '4.4' into 5.2 · symfony/symfony@10732e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10732e7

Browse files
Merge branch '4.4' into 5.2
* 4.4: [FrameworkBundle] fix tests
2 parents 02cc8f2 + 41e88c9 commit 10732e7

11 files changed

+26
-21
lines changed

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,12 @@ jobs:
198198
git checkout -m FETCH_HEAD
199199
COMPONENTS=$(echo "$COMPONENTS" | xargs dirname | xargs -n1 -I{} bash -c "[ -e '{}/phpunit.xml.dist' ] && echo '{}'" | sort || true)
200200
(cd src/Symfony/Component/HttpFoundation; composer require --dev --no-update mongodb/mongodb)
201-
[[ ! $COMPONENTS ]] || echo "$COMPONENTS" | parallel -j +3 "_run_tests {} 'cd {} && rm composer.lock vendor/ -Rf && $COMPOSER_UP && $PHPUNIT$LEGACY'" || X=1
201+
if [[ $COMPONENTS ]]; then
202+
echo "::group::install phpunit"
203+
./phpunit install
204+
echo "::endgroup::"
205+
echo "$COMPONENTS" | parallel -j +3 "_run_tests {} 'cd {} && rm composer.lock vendor/ -Rf && $COMPOSER_UP && $PHPUNIT$LEGACY'" || X=1
206+
fi
202207
fi
203208
204209
[[ ! $X ]] || (exit 1)

src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/ObjectsProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public static function getEventDispatchers()
220220
{
221221
$eventDispatcher = new EventDispatcher();
222222

223-
$eventDispatcher->addListener('event1', 'global_function', 255);
223+
$eventDispatcher->addListener('event1', 'var_dump', 255);
224224
$eventDispatcher->addListener('event1', function () { return 'Closure'; }, -1);
225225
$eventDispatcher->addListener('event2', new CallableClass());
226226

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/event_dispatcher_1_event1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"type": "function",
4-
"name": "global_function",
4+
"name": "var_dump",
55
"priority": 255
66
},
77
{

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/event_dispatcher_1_event1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Listener 1
44

55- Type: `function`
6-
- Name: `global_function`
6+
- Name: `var_dump`
77
- Priority: `255`
88

99
## Listener 2

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/event_dispatcher_1_event1.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
Registered Listeners for "event1" Event
33
=======================================
44

5-
------- ------------------- ----------
6-
 Order   Callable   Priority 
7-
------- ------------------- ----------
8-
#1 global_function() 255
9-
#2 Closure() -1
10-
------- ------------------- ----------
5+
------- ------------ ----------
6+
 Order   Callable   Priority 
7+
------- ------------ ----------
8+
#1 var_dump() 255
9+
#2 Closure() -1
10+
------- ------------ ----------
1111

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<event-dispatcher>
3-
<callable type="function" name="global_function" priority="255"/>
3+
<callable type="function" name="var_dump" priority="255"/>
44
<callable type="closure" priority="-1"/>
55
</event-dispatcher>

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/event_dispatcher_1_events.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"event1": [
33
{
44
"type": "function",
5-
"name": "global_function",
5+
"name": "var_dump",
66
"priority": 255
77
},
88
{

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/event_dispatcher_1_events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Listener 1
66

77
- Type: `function`
8-
- Name: `global_function`
8+
- Name: `var_dump`
99
- Priority: `255`
1010

1111
### Listener 2

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/event_dispatcher_1_events.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"event1" event
66
--------------
77

8-
------- ------------------- ----------
9-
 Order   Callable   Priority 
10-
------- ------------------- ----------
11-
#1 global_function() 255
12-
#2 Closure() -1
13-
------- ------------------- ----------
8+
------- ------------ ----------
9+
 Order   Callable   Priority 
10+
------- ------------ ----------
11+
#1 var_dump() 255
12+
#2 Closure() -1
13+
------- ------------ ----------
1414

1515
"event2" event
1616
--------------

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/event_dispatcher_1_events.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<event-dispatcher>
33
<event name="event1">
4-
<callable type="function" name="global_function" priority="255"/>
4+
<callable type="function" name="var_dump" priority="255"/>
55
<callable type="closure" priority="-1"/>
66
</event>
77
<event name="event2">

src/Symfony/Bundle/TwigBundle/Resources/config/twig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
->args([
157157
service('twig'),
158158
service('twig.error_renderer.html.inner'),
159-
inline_service(TwigErrorRenderer::class)
159+
inline_service('bool')
160160
->factory([TwigErrorRenderer::class, 'isDebug'])
161161
->args([service('request_stack'), param('kernel.debug')]),
162162
])

0 commit comments

Comments
 (0)
0